diff --git a/tests/Jamfile b/tests/Jamfile new file mode 100644 index 0000000..aa5e8da --- /dev/null +++ b/tests/Jamfile @@ -0,0 +1,33 @@ +subproject libs/type_traits/test ; + + +unit-test alignment_test : alignment_test.cpp + : $(BOOST_ROOT) : ; + +unit-test arithmetic_traits_test : arithmetic_traits_test.cpp + : $(BOOST_ROOT) : ; + +unit-test composite_traits_test : composite_traits_test.cpp + : $(BOOST_ROOT) : ; + +unit-test cv_traits_test : cv_traits_test.cpp + : $(BOOST_ROOT) : ; + +unit-test is_convertible_test : is_convertible_test.cpp + : $(BOOST_ROOT) : ; + +unit-test is_function_test : is_function_test.cpp + : $(BOOST_ROOT) : ; + +unit-test is_same_test : is_same_test.cpp + : $(BOOST_ROOT) : ; + +unit-test object_traits_test : object_traits_test.cpp + : $(BOOST_ROOT) : ; + +unit-test transform_traits_test : transform_traits_test.cpp + : $(BOOST_ROOT) : ; + + + + diff --git a/tests/object_type_traits_test.cpp b/tests/object_type_traits_test.cpp index 88c440c..b4c3449 100644 --- a/tests/object_type_traits_test.cpp +++ b/tests/object_type_traits_test.cpp @@ -19,6 +19,13 @@ NESTED_DECL(is_scalar) NESTED_DECL(is_compound) NESTED_DECL(is_POD) +struct non_default_constructable_UDT +{ + non_default_constructable_UDT(const non_default_constructable_UDT&){} +private: + non_default_constructable_UDT(){} +}; + int cpp_main(int argc, char* argv[]) { NESTED_TEST(is_class, int) @@ -204,6 +211,7 @@ int cpp_main(int argc, char* argv[]) soft_value_test(true, boost::is_empty::value) soft_value_test(false, boost::is_empty::value) soft_value_test(false, boost::is_empty::value) + soft_value_test(true, boost::is_empty::value) return check_result(argc, argv); } @@ -230,3 +238,4 @@ unsigned int expected_failures = 4; +