Boost C++ Libraries: Ticket #9390: Incomplete BOOST_TEST_DONT_PRINT_LOG_VALUE https://svn.boost.org/trac10/ticket/9390 <p> When we use a user-defined error without overloaded <code></code><code>operator&lt;&lt;(std::ostream&amp;, T const&amp;)</code><code></code>, we have to use BOOST_TEST_DONT_PRINT_LOG_VALUE in order to prevent UTF to print output to log. </p> <p> BOOST_TEST_DONT_PRINT_LOG_VALUE works correctly only if you use macros like BOOST_CHECK_EQUAL. </p> <p> However, BOOST_CHECK_EQUAL_COLLECTIONS provokes compile-time error. For instance, on MSVC2010 (Windows x64), the error message is: </p> <pre class="wiki">compile-time error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'const MyClass' (or there is no acceptable conversion) c:\lib\Boost\include\boost-1_54\boost\test\utils\wrap_stringstream.hpp 66 }}}. The problem is that ```BOOST_CHECK_EQUAL_COLLECTIONS`` uses ```operator&lt;&lt;( basic_wrap_stringstream&lt;CharT&gt;&amp; targ, T const&amp; t )``` from wrap_stringstream.hpp, whereas BOOST_CHECK_EQUAL uses ```print_log_value::operator()( std::ostream&amp; ostr, T const&amp; t )``` from test_tools.hpp. BOOST_TEST_DONT_PRINT_LOG_VALUE only specializes the latter. The solution is to partially specialize the former template as well. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9390 Trac 1.4.3 Marek Kurdej <curdeius@…> Thu, 14 Nov 2013 16:09:02 GMT attachment set https://svn.boost.org/trac10/ticket/9390 https://svn.boost.org/trac10/ticket/9390 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_test_dont_print_log-collections.cpp</span> </li> </ul> <p> Sample program which reveals the problem. </p> Ticket Marek Kurdej <curdeius@…> Thu, 14 Nov 2013 16:09:16 GMT attachment set https://svn.boost.org/trac10/ticket/9390 https://svn.boost.org/trac10/ticket/9390 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_test_dont_print_log-collections.patch</span> </li> </ul> <p> Proposed patch. </p> Ticket Marek Kurdej <curdeius@…> Thu, 14 Nov 2013 16:12:50 GMT component, milestone changed; cc, owner set https://svn.boost.org/trac10/ticket/9390#comment:1 https://svn.boost.org/trac10/ticket/9390#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">curdeius@…</span> added </li> <li><strong>owner</strong> set to <span class="trac-author">Gennadiy Rozental</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket Raffi Enficiaud Mon, 22 Dec 2014 22:45:45 GMT owner, status changed https://svn.boost.org/trac10/ticket/9390#comment:2 https://svn.boost.org/trac10/ticket/9390#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Mon, 22 Dec 2014 22:45:53 GMT <link>https://svn.boost.org/trac10/ticket/9390#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9390#comment:3</guid> <description> <p> Fixed in develop </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Tue, 07 Jul 2015 08:34:43 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/9390#comment:4 https://svn.boost.org/trac10/ticket/9390#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.56.0</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket