Boost C++ Libraries: Ticket #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string> https://svn.boost.org/trac10/ticket/11571 <p> Thanks for the new BOOST_TEST() and per_element() tools, which look very useful. </p> <p> Unfortunately, the following simple vector&lt;string&gt; example fails to compile under both <code>g++ -std=c++11</code> and <code>clang++ -std=c++11 -stdlib=libc++</code>. </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#define BOOST_TEST_MODULE comp_str_mod</span> <span class="cp">#include</span> <span class="cpf">&lt;boost/test/included/unit_test.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;string&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;vector&gt;</span><span class="cp"></span> <span class="n">BOOST_AUTO_TEST_CASE</span><span class="p">(</span> <span class="n">comp_strs</span> <span class="p">)</span> <span class="p">{</span> <span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="o">&gt;</span> <span class="n">a</span><span class="p">{</span> <span class="s">&quot;ann&quot;</span> <span class="p">};</span> <span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="o">&gt;</span> <span class="n">b</span><span class="p">{</span> <span class="s">&quot;bry&quot;</span> <span class="p">};</span> <span class="n">BOOST_TEST</span><span class="p">(</span> <span class="n">a</span> <span class="o">==</span> <span class="n">b</span><span class="p">,</span> <span class="n">boost</span><span class="o">::</span><span class="n">test_tools</span><span class="o">::</span><span class="n">per_element</span><span class="p">()</span> <span class="p">);</span> <span class="p">}</span> </pre></div></div><p> The core part of GCC's error message is: </p> <pre class="wiki">error: ‘revert’ is not a member of ‘boost::test_tools::assertion::op::EQ&lt;std::basic_string&lt;char&gt;, std::basic_string&lt;char&gt;, void&gt;’ </pre><p> If I'm doing it wrong, is there any way we can make the compile errors and/or documentation clearer about avoiding this? Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11571 Trac 1.4.3 Gennadiy Rozental Tue, 25 Aug 2015 07:05:24 GMT attachment set https://svn.boost.org/trac10/ticket/11571 https://svn.boost.org/trac10/ticket/11571 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch</span> </li> </ul> <p> Fix </p> Ticket Gennadiy Rozental Tue, 25 Aug 2015 07:06:05 GMT <link>https://svn.boost.org/trac10/ticket/11571#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11571#comment:1</guid> <description> <p> Thank you for the report. Please use attached fix for the resolution in 1.59 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 31 Aug 2015 01:16:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11571#comment:2 https://svn.boost.org/trac10/ticket/11571#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket anonymous Mon, 07 Sep 2015 09:50:28 GMT <link>https://svn.boost.org/trac10/ticket/11571#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11571#comment:3</guid> <description> <p> This fix works for me. Thanks very much for the prompt response. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 07 Sep 2015 09:51:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11571#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11571#comment:4</guid> <description> <p> This fix works for me. Thanks very much for the prompt response. </p> </description> <category>Ticket</category> </item> <item> <author>Tony Lewis <tonyelewis@…></author> <pubDate>Mon, 07 Sep 2015 09:51:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11571#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11571#comment:5</guid> <description> <p> This fix works for me. Thanks very much for the prompt response. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Mon, 28 Sep 2015 08:42:40 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/11571#comment:6 https://svn.boost.org/trac10/ticket/11571#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Reopenning for keeping track of the change, will close issue when merged to master </p> Ticket Raffi Enficiaud Mon, 28 Sep 2015 08:42:45 GMT owner, status changed https://svn.boost.org/trac10/ticket/11571#comment:7 https://svn.boost.org/trac10/ticket/11571#comment:7 <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">reopened</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Raffi Enficiaud Mon, 28 Sep 2015 08:43:10 GMT status changed https://svn.boost.org/trac10/ticket/11571#comment:8 https://svn.boost.org/trac10/ticket/11571#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:49:59 GMT milestone changed https://svn.boost.org/trac10/ticket/11571#comment:9 https://svn.boost.org/trac10/ticket/11571#comment:9 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> Ticket Raffi Enficiaud Mon, 02 Nov 2015 10:12:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11571#comment:10 https://svn.boost.org/trac10/ticket/11571#comment:10 <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> </ul> <p> merged to master </p> Ticket