Boost C++ Libraries: Ticket #13131: move_if_not_lvalue_reference undefined under BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE https://svn.boost.org/trac10/ticket/13131 <p> Defining BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE causes the following program to fail compilation for boost-1.60.0 and newer: </p> <blockquote> <p> #define BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE </p> </blockquote> <blockquote> <p> #include &lt;boost/thread.hpp&gt; </p> </blockquote> <blockquote> <p> int main() { } </p> </blockquote> <p> NOTE: this regression was reported over a year ago on the mailing lists but the message received no reply and nobody ever filed a bug. <a class="ext-link" href="https://lists.boost.org/boost-users/2015/12/85457.php"><span class="icon">​</span>https://lists.boost.org/boost-users/2015/12/85457.php</a> </p> <p> It appears the fix is simple: move the definition of move_if_not_lvalue_reference() outside the #ifdef for BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE. Untested patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13131 Trac 1.4.3 ryan.johnson@… Fri, 21 Jul 2017 17:03:56 GMT attachment set https://svn.boost.org/trac10/ticket/13131 https://svn.boost.org/trac10/ticket/13131 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-move-if-not-lvalue_reference-fix.patch</span> </li> </ul> Ticket martin.bravenboer@… Fri, 21 Jul 2017 22:05:21 GMT <link>https://svn.boost.org/trac10/ticket/13131#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13131#comment:1</guid> <description> <p> Patch confirmed to work for us. </p> </description> <category>Ticket</category> </item> </channel> </rss>