You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brigand/test/sizeof.cpp

11 lines
447 B
C++

#include <brigand/functions/misc/sizeof.hpp>
#include <type_traits>
struct udt { char a[100]; };
static_assert( brigand::sizeof_<char>::value == sizeof(char), "invalid sizeof_" );
static_assert( brigand::sizeof_<int>::value == sizeof(int), "invalid sizeof_" );
static_assert( brigand::sizeof_<double>::value == sizeof(double), "invalid sizeof_" );
static_assert( brigand::sizeof_<udt>::value == sizeof(udt), "invalid sizeof_" );