| 41 | }; |
| 42 | |
| 43 | void test_metaprog() |
| 44 | { |
| 45 | DLIB_TEST(has_booya2_template<htest>::value == true); |
| 46 | DLIB_TEST(has_booya2_template<htest2>::value == false); |
| 47 | |
| 48 | #if _MSC_VER > 1600 // there is a bug in visual studio 2010 and older that prevents this test from working |
| 49 | DLIB_TEST(has_booya_template<htest>::value == true); |
| 50 | #endif |
| 51 | |
| 52 | DLIB_TEST(has_booya_template<htest2>::value == false); |
| 53 | |
| 54 | DLIB_TEST(has_funct_int<htest>::value == false); |
| 55 | DLIB_TEST(has_funct_int<htest2>::value == true); |
| 56 | DLIB_TEST(has_funct_double<htest>::value == true); |
| 57 | DLIB_TEST(has_funct_double<htest2>::value == false); |
| 58 | |
| 59 | DLIB_TEST(has_funct_f<htest>::value == false); |
| 60 | DLIB_TEST(has_funct_f<htest2>::value == true); |
| 61 | } |
| 62 | |
| 63 | class is_same_object_tester : public tester |
| 64 | { |