diff --git a/qa/unit_test_utils/include/unit_test_utils/geometry.h b/qa/unit_test_utils/include/unit_test_utils/geometry.h index cc10cd3814..2f8be6f707 100644 --- a/qa/unit_test_utils/include/unit_test_utils/geometry.h +++ b/qa/unit_test_utils/include/unit_test_utils/geometry.h @@ -8,17 +8,17 @@ #include #include -/** - * Printer for BOX2I type - */ -template <> struct BOOST_PRINT::print_log_value -{ - void operator()( std::ostream& os, const BOX2I& aBox ) - { - os << "BOX[ " << aBox.GetOrigin() << " + " << aBox.GetSize() << " ]"; - } -}; +/** + * Define a stream function for logging this type. + * + * TODO: convert to boost_test_print_type when Boost minver > 1.64 + */ +std::ostream& operator<<( std::ostream& os, const BOX2I& aBox ) +{ + os << "BOX[ " << aBox.GetOrigin() << " + " << aBox.GetSize() << " ]"; + return os; +} namespace KI_TEST { diff --git a/qa/unit_test_utils/include/unit_test_utils/unit_test_utils.h b/qa/unit_test_utils/include/unit_test_utils/unit_test_utils.h index 9e54e0fbb4..160d01d55a 100644 --- a/qa/unit_test_utils/include/unit_test_utils/unit_test_utils.h +++ b/qa/unit_test_utils/include/unit_test_utils/unit_test_utils.h @@ -77,16 +77,4 @@ #endif -/* - * Define a helper to make it easier to use the right namespace for - * defining the print helpers like this: - * - * template<> - * struct BOOST_PRINT::print_log_value< MY_TYPE > - */ -#if BOOST_VERSION < 105900 -namespace BOOST_PRINT = boost::test_tools; -#else -namespace BOOST_PRINT = boost::test_tools::tt_detail; -#endif #endif // UNIT_TEST_UTILS__H \ No newline at end of file