Boost C++ Libraries: Ticket #7087: std::forward or std::move missing in Boost.Test on Darwin Clang https://svn.boost.org/trac10/ticket/7087 <p> Sandia-darwin-clang compiler in </p> <p> ../boost/test/tools/assertion.hpp </p> <p> seems to be missing something for several Boost.math tests, for example: </p> <p> Sandia-darwin-clang-trunk-c++11 - math - hypot_test / clang-darwin-trunk </p> <p> <a href="http://www.boost.org/development/tests/trunk/developer/output/Sandia-darwin-clang-trunk-c++11-boost-bin-v2-libs-math-test-hypot_test-test-clang-darwin-trunk-debug-link-static.html">http://www.boost.org/development/tests/trunk/developer/output/Sandia-darwin-clang-trunk-c++11-boost-bin-v2-libs-math-test-hypot_test-test-clang-darwin-trunk-debug-link-static.html</a> </p> <p> <a class="ext-link" href="http://tinyurl.com/7q8ltjg"><span class="icon">​</span>http://tinyurl.com/7q8ltjg</a> </p> <p> ../boost/test/tools/assertion.hpp:278:29: error: 'T' does not refer to a value </p> <blockquote> <p> : m_value( std::forward&lt;T&gt;(val) ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ../boost/test/tools/assertion.hpp:269:19: note: declared here template&lt;typename T&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> ../boost/test/tools/assertion.hpp:386:36: error: no member named 'forward' in namespace 'std' </p> <blockquote> <p> return value_expr&lt;T&gt;( std::forward&lt;T&gt;( v ) ); </p> </blockquote> <p> Could be a missing #include, or else the compiler has rvalue refs but no std::move/forward? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7087 Trac 1.4.3 Marshall Clow Thu, 05 Jul 2012 17:34:22 GMT <link>https://svn.boost.org/trac10/ticket/7087#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7087#comment:1</guid> <description> <p> I believe that if you do not specify <code>stdlib=libc++</code> when using clang, you get Apple's release of gcc's standard library (which is based on gcc 4.2). </p> <p> That library predates C++11, and (therefore) does not support <code>std::move</code> (and <code>std::forward</code> and lots of other C++11 stuff) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 05 Jul 2012 17:36:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7087#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7087#comment:2</guid> <description> <p> "Someone" ought to update the clang configuration on Mac OS X so that if you specify c++11, you also get libc++ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Thu, 05 Jul 2012 17:56:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7087#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7087#comment:3</guid> <description> <p> Sadly this is not within my skill set! </p> <p> (Might this also 'enable' numeric_limits&lt;&gt;::max_digits10; which should have been included from TR1 but seems not to be on many platforms, including clang?) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 05 Nov 2012 09:23:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7087#comment:4 https://svn.boost.org/trac10/ticket/7087#comment:4 <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> <p> Fixed in trunk </p> Ticket