Boost C++ Libraries: Ticket #6456: trunk compilation errors converting future_errc to int https://svn.boost.org/trac10/ticket/6456 <p> Dear Boot Thread maintainers, </p> <p> I am unable to compile current boost trunk (1.49) thread library. I am running gcc 4.6.2 on a precise ubuntu, 64 bit, c++11 mode. </p> <p> Details: </p> <p> libs/thread/src/future.cpp: In member function ‘virtual std::string boost::thread_detail::future_error_category::message(int) const’: libs/thread/src/future.cpp:33:27: error: could not convert ‘(boost::future_errc)0’ from ‘boost::future_errc’ to ‘int’ libs/thread/src/future.cpp:36:27: error: could not convert ‘(boost::future_errc)1’ from ‘boost::future_errc’ to ‘int’ libs/thread/src/future.cpp:39:27: error: could not convert ‘(boost::future_errc)2’ from ‘boost::future_errc’ to ‘int’ libs/thread/src/future.cpp:41:27: error: could not convert ‘(boost::future_errc)3’ from ‘boost::future_errc’ to ‘int’ </p> <blockquote> <p> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -m64 -Wno-long-long -std=gnu++0x -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-4.6/release/address-model-64/threading-multi/future.o" "libs/thread/src/future.cpp" </p> </blockquote> <p> ...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.6/release/address-model-64/threading-multi/future.o.. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6456 Trac 1.4.3 viboes Wed, 08 Feb 2012 21:36:21 GMT <link>https://svn.boost.org/trac10/ticket/6456#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6456#comment:1</guid> <description> <p> Thanks for catching this enum class issue. </p> <p> I guess this will solve the problem </p> <pre class="wiki"> switch (BOOST_SCOPED_ENUM_NATIVE(future_errc)(ev)) </pre><p> Committed revision 76952. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 08 Feb 2012 22:04:29 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/6456#comment:2 https://svn.boost.org/trac10/ticket/6456#comment:2 <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> Ticket viboes Fri, 10 Feb 2012 15:52:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6456#comment:3 https://svn.boost.org/trac10/ticket/6456#comment:3 <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">fixed</span> </li> </ul> Ticket