diff --git a/test/integer_mask_test.cpp b/test/integer_mask_test.cpp index 65b6fc2..c3a0854 100644 --- a/test/integer_mask_test.cpp +++ b/test/integer_mask_test.cpp @@ -31,21 +31,6 @@ #include // for std::size_t #include // for std::hex -#include // for std::cout -#include // for std::endl - - -// Control if events will be printed conventionally, or just logged. -#ifndef CONTROL_SHOW_TYPES -#define CONTROL_SHOW_TYPES 0 -#endif - -// Logging -#if CONTROL_SHOW_TYPES -#define PRIVATE_SHOW_MESSAGE( m ) std::cout << m << std::endl -#else -#define PRIVATE_SHOW_MESSAGE( m ) BOOST_TEST_MESSAGE( m ) -#endif // Custom types/templates, helper functions, and objects @@ -71,7 +56,7 @@ print_out_template( Tmpl const &, ValueT setting, char const // Too bad the type-id expression couldn't use the compact form "*unused", // but type-ids of dereferenced null pointers throw by order of C++ 2003, // sect. 5.2.8, para. 2 (although the result is not conceptually needed). - PRIVATE_SHOW_MESSAGE( "There is an " << template_name << "<" << setting << + BOOST_TEST_MESSAGE( "There is an " << template_name << "<" << setting << "> specialization with type '" << typeid(typename Tmpl::value_type).name() << "' and value '" << std::hex << Tmpl::value << "'." ); @@ -82,7 +67,7 @@ template < typename ValueT, typename T > bool print_out_template( T const &, ValueT setting, char const *template_name ) { - PRIVATE_SHOW_MESSAGE( "There is no " << template_name << "<" << setting << + BOOST_TEST_MESSAGE( "There is no " << template_name << "<" << setting << "> specialization." ); return false; } diff --git a/test/integer_test.cpp b/test/integer_test.cpp index 8f5c834..3749183 100644 --- a/test/integer_test.cpp +++ b/test/integer_test.cpp @@ -58,8 +58,6 @@ #include // for std::binary_search #include // for ULONG_MAX, LONG_MAX, LONG_MIN, etc. #include // for std::size_t -#include // for std::cout -#include // for std::endl #include // for std::type_info @@ -68,12 +66,6 @@ #define CONTROL_FAST_SHORT long #endif -// Control if the names of the types for each version -// of the integer templates will be printed. -#ifndef CONTROL_SHOW_TYPES -#define CONTROL_SHOW_TYPES 0 -#endif - // Control if every potential bit-count is used, or only a selection // For me, full counts increase compile time from 90 seconds to 20 minutes! #ifndef CONTROL_FULL_COUNTS @@ -95,14 +87,6 @@ namespace boost } -// Logging -#if CONTROL_SHOW_TYPES -#define PRIVATE_SHOW_MESSAGE( m ) std::cout << m << std::endl -#else -#define PRIVATE_SHOW_MESSAGE( m ) BOOST_TEST_MESSAGE( m ) -#endif - - // Custom types/templates, helper functions, and objects namespace { @@ -272,7 +256,7 @@ print_out_template( Tmpl const &, ValueT setting, char const // Too bad the type-id expression couldn't use the compact form "*unused", // but type-ids of dereferenced null pointers throw by order of C++ 2003, // sect. 5.2.8, para. 2 (although the result is not conceptually needed). - PRIVATE_SHOW_MESSAGE( "This is " << template_pre_name << setting + BOOST_TEST_MESSAGE( "This is " << template_pre_name << setting << template_post_name << " specialization, with type '" << typeid(typename Tmpl::type).name() << "'." ); return true; @@ -283,7 +267,7 @@ bool print_out_template( T const &, ValueT setting, char const *template_pre_name, char const *template_post_name ) { - PRIVATE_SHOW_MESSAGE( "Looking for " << template_pre_name << setting + BOOST_TEST_MESSAGE( "Looking for " << template_pre_name << setting << template_post_name << " specialization? It doesn't exist." ); return false; }