33 template<
int Size1,
int Size2>
39 static inline void test(
int,
int){}
44 static inline void test(
int size1,
int size2){
46 #ifdef TOON_TEST_INTERNALS 47 throw Internal::SizeMismatch();
48 #elif !defined TOON_NDEBUG_SIZE 49 std::cerr <<
"TooN Size Mismatch" << std::endl;
58 static inline void test(
int size1,
int size2){
60 #ifdef TOON_TEST_INTERNALS 61 throw Internal::SizeMismatch();
62 #elif !defined TOON_NDEBUG_SIZE 63 std::cerr <<
"TooN Size Mismatch" << std::endl;
72 static inline void test(
int size1,
int size2){
74 #ifdef TOON_TEST_INTERNALS 75 throw Internal::SizeMismatch();
76 #elif !defined TOON_NDEBUG_SIZE 77 std::cerr <<
"TooN Size Mismatch" << std::endl;
91 #ifdef TOON_TEST_INTERNALS 92 template<
int Size1,
int Size2>
95 static inline void test(
int,
int)
97 throw Internal::StaticSizeMismatch();
102 template<
int Size1,
int Size2>
105 static inline void test(
int s1,
int s2)
107 SizeMismatch_< (Size1 == Dynamic || Size1 == Resizable)?Dynamic:Size1,
108 (Size2 == Dynamic || Size2 == Resizable)?Dynamic:Size2 >::test(s1, s2);
Pretty generic SFINAE introspection generator.
Definition: vec_test.cc:21
Definition: size_mismatch.hh:34
Definition: size_mismatch.hh:103