Boost C++ Libraries: Ticket #13480: When included <boost\thread.hpp>, boost::move uses implemented in boost\thread\detail\move.hpp instead of boost\move\utility_core.hpp https://svn.boost.org/trac10/ticket/13480 <p> Hello, </p> <p> Please see the attached file. If fails to build when header file "boost\thread.hpp" is included. Apparently when is not include "::boost:move" is implemented by "boost\move\utility_core.hpp" but when is included then is implemented by "boost\thread\detail\move.hpp". </p> <p> In both header files there is a boost::move function and it looks like it selects the wrong one. Probably depends on the compiler because this is happening in VS2017 but not in VS2013. </p> <p> Is there any workaround besides the fix? </p> <p> Thank you for your help. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13480 Trac 1.4.3 Mariano Quesada <mquesada@…> Tue, 13 Mar 2018 16:38:03 GMT attachment set https://svn.boost.org/trac10/ticket/13480 https://svn.boost.org/trac10/ticket/13480 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ConsoleApplicationvs2017.cpp</span> </li> </ul> <p> Main file </p> Ticket viboes Fri, 13 Apr 2018 06:21:29 GMT owner, status changed https://svn.boost.org/trac10/ticket/13480#comment:1 https://svn.boost.org/trac10/ticket/13480#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Please, could you report the compiler error? </p> Ticket Mariano Quesada <mquesada@…> Fri, 13 Apr 2018 07:56:03 GMT attachment set https://svn.boost.org/trac10/ticket/13480 https://svn.boost.org/trac10/ticket/13480 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">error_report.txt</span> </li> </ul> <p> Compiler error </p> Ticket Mariano Quesada <mquesada@…> Fri, 13 Apr 2018 07:57:03 GMT <link>https://svn.boost.org/trac10/ticket/13480#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13480#comment:2</guid> <description> <p> Thank your for your help. I have attached a file with the compiler error report. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 13 Apr 2018 22:57:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13480#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13480#comment:3</guid> <description> <p> I believe the issue is that before version 3, Boost.Thread defined itself boost::move. </p> <p> You need to define </p> <pre class="wiki">#define BOOST_THREAD_VERSION 3 </pre><p> or higher when you include boost/thread.hpp and want to be compatible with Boost.Move. </p> <p> Sorry, but Boost.Thread defined boost::move before it was defined by Boost.Move. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 14 Apr 2018 06:31:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13480#comment:4 https://svn.boost.org/trac10/ticket/13480#comment:4 <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">invalid</span> </li> </ul> Ticket