Boost C++ Libraries: Ticket #9938: sp_array_test.cpp doesn't compile on clang++ without c++11 https://svn.boost.org/trac10/ticket/9938 <p> Compiling libs/smart_ptr/test/sp_array_test.cpp fails with both clang++ and g++ (compilers that came with Xcode 5.1, "Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)") unless c++11 is specified. The error is: </p> <p> sp_array_test.cpp:204:32: error: no matching constructor for initialization of 'boost::shared_ptr&lt;X []&gt;' </p> <blockquote> <p> boost::shared_ptr&lt;X[]&gt; px2( std::move( px ) ); </p> </blockquote> <p> note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'unique_ptr&lt;X [], std::<span class="underline">1::default_delete&lt;X []&gt; &gt;' to 'const boost::shared_ptr&lt;X []&gt;' for 1st argument </span></p> <p> One fix is to replace line 197 #if !defined( BOOST_NO_CXX11_SMART_PTR ) with #if !defined( BOOST_NO_CXX11_SMART_PTR ) &amp;&amp; !defined( BOOST_NO_CXX11_RVALUE_REFERENCES) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9938 Trac 1.4.3 chris.cooper@… Tue, 22 Apr 2014 19:23:20 GMT <link>https://svn.boost.org/trac10/ticket/9938#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9938#comment:1</guid> <description> <p> Same problem, and same solution, for sp_unique_ptr_test.cpp </p> </description> <category>Ticket</category> </item> <item> <author>Niklas Angare <li51ckf02@…></author> <pubDate>Sat, 10 May 2014 16:54:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9938#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9938#comment:2</guid> <description> <p> The unit tests themselves are considered part of their respective library, so these bugs should be reported against the component corresponding to the library (smart_ptr in this case), not the regression testing component. It seems you can move the bug report to a different component if you click modify in the top right corner. </p> <p> (I'm not part of the Boost inner circle, just trying to help.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 15 May 2014 14:57:00 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/9938#comment:3 https://svn.boost.org/trac10/ticket/9938#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">René Rivera</span> to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">Regression Testing</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> Ticket Peter Dimov Thu, 15 May 2014 15:54:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9938#comment:4 https://svn.boost.org/trac10/ticket/9938#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> Thanks, fixed. </p> Ticket