Ticket #9390: boost_test_dont_print_log-collections.patch

File boost_test_dont_print_log-collections.patch, 1.9 KB (added by Marek Kurdej <curdeius@…>, 9 years ago)

Proposed patch.

  • print_helper.hpp

     
    182182// **************       BOOST_TEST_DONT_PRINT_LOG_VALUE        ************** //
    183183// ************************************************************************** //
    184184
    185 #define BOOST_TEST_DONT_PRINT_LOG_VALUE( the_type )         \
    186 namespace boost{ namespace test_tools{ namespace tt_detail{ \
    187 template<>                                                  \
    188 struct print_log_value<the_type > {                         \
    189     void    operator()( std::ostream&, the_type const& ) {} \
    190 };                                                          \
    191 }}}                                                         \
     185#define BOOST_TEST_DONT_PRINT_LOG_VALUE( the_type )                 \
     186namespace boost {                                                   \
     187                                                                    \
     188template <typename CharT>                                           \
     189inline basic_wrap_stringstream<CharT>&                              \
     190operator<<( basic_wrap_stringstream<CharT>& targ, the_type const& ) \
     191{                                                                   \
     192    return targ;                                                    \
     193}                                                                   \
     194                                                                    \
     195namespace test_tools { namespace tt_detail{                         \
     196template<>                                                          \
     197struct print_log_value<the_type > {                                 \
     198    void operator()( std::ostream&, the_type const& ) {}            \
     199};                                                                  \
     200}}}                                                                 \
    192201/**/
    193202
    194203} // namespace test_tools