mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
all type_traits support C++14 requirements
This commit is contained in:
parent
bf0c7021cf
commit
403e83eaf0
95 changed files with 319 additions and 268 deletions
|
@ -11,12 +11,18 @@
|
|||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename T>
|
||||
struct sizeof_
|
||||
: public sprout::integral_constant<std::size_t, sizeof(T)>
|
||||
{};
|
||||
|
||||
template<typename... Ts>
|
||||
struct sizeof_pack
|
||||
: public std::integral_constant<std::size_t, sizeof...(Ts)>
|
||||
: public sprout::integral_constant<std::size_t, sizeof...(Ts)>
|
||||
{};
|
||||
} // namespace detail
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue