Boost C++ Libraries: Ticket #13573: container/detail/flat_tree.hpp should not #include <boost/move/make_unique.hpp> https://svn.boost.org/trac10/ticket/13573 <p> Code that uses boost::container::flap_map fails to compile on gcc4.8.5 with -std=c++1 when BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE is defined, with the following compile error: </p> <p> boost/move/unique_ptr.hpp: In constructor 'boost::movelib::unique_ptr&lt;T, D&gt;::unique_ptr(boost::movelib::unique_ptr&lt;T, D&gt;&amp;&amp;)': boost/move/unique_ptr.hpp:528:29: error: 'move_if_not_lvalue_reference' is not a member of 'boost' </p> <blockquote> <p> : m_data(u.release(), ::boost::move_if_not_lvalue_reference&lt;D&gt;(u.get_deleter())) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> boost/move/unique_ptr.hpp:528:68: error: expected primary-expression before '&gt;' token </p> <blockquote> <p> : m_data(u.release(), ::boost::move_if_not_lvalue_reference&lt;D&gt;(u.get_deleter())) </p> </blockquote> <p> I was able to workaround this by passing in -DBOOST_MOVE_MAKE_UNIQUE_HPP_INCLUDED on the commandline to gcc, which effectively inhibits boost/move/make_unique.hpp from being included. </p> <p> The fact the above workaround worked at all seems to suggest that container/detail/flat_tree.hpp has no dependency on boost/move/make_unique.hpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13573 Trac 1.4.3