49 #define Z2_INVERT_STATIC_ASSERT_FOR_UNIT_TESTING
55 #define BEGIN_CHECK if( InputTraits<
56 #define END_CHECK >::name() == "unused string" ) \
57 { std::cout << "Unused - Just make sure it compiles." << std::endl; }
59 template<
class A,
class B,
class C >
64 int main(
int argc,
char *argv[])
110 typedef signed int user_int_t;
111 typedef unsigned int user_unsigned_int_t;
112 typedef float user_float_t;
113 typedef double user_double_t;
114 typedef uint32_t user_uint32_t;
115 typedef int64_t user_int64_t;
116 typedef uint64_t user_uint64_t;
117 typedef signed long user_long_t;
118 typedef signed long long user_long_long_t;
119 typedef unsigned long user_unsigned_long_t;
120 typedef unsigned long long user_unsigned_long_long_t;
121 typedef size_t user_size_t;
122 typedef ssize_t user_ssize_t;
180 std::cout <<
"Validated bad InputTraits - The test PASSED because it "
181 "compiled with the static_assert checks inverted." << std::endl;
int main(int narg, char *arg[])
A simple class that can be the User template argument for an InputAdapter.