Boost C++ Libraries: Ticket #6620: Boost Asio error with (unreleased) gcc 4.7 - monotonic / steady clock https://svn.boost.org/trac10/ticket/6620 <p> Dear Chris, </p> <p> I'm aware gcc 4.7 is not released yet, however I'm using it to test some c++11 features. Unfortunately Boost Asio fails to compile due to the name change monotonic_clock to steady_clock, I am reporting it "early" :) 4.6.2 </p> <pre class="wiki">#ifdef _GLIBCXX_USE_CLOCK_MONOTONIC /// monotonic_clock struct monotonic_clock </pre><p> 4.7 snapshot </p> <pre class="wiki">#ifdef _GLIBCXX_USE_CLOCK_MONOTONIC /// steady_clock struct steady_clock { </pre><p> compiling: </p> <pre class="wiki">In file included from /adnet/src/cttc-pce-trunk/apps/common/connection.hpp:19:0, from /adnet/src/cttc-pce-trunk/apps/common/client.cpp:13: /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp: At global scope: /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:30: error: 'monotonic_clock' is not a member of 'std::chrono' /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:30: error: 'monotonic_clock' is not a member of 'std::chrono' /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:58: error: template argument 1 is invalid /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:58: error: template argument 2 is invalid /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:58: error: template argument 3 is invalid /adnet/boost-1.49.0/include/boost/asio/steady_timer.hpp:48:72: error: invalid type in declaration before ';' token </pre><p> Thanks in advance and thanks for your work with boost asio R. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6620 Trac 1.4.3 anonymous Sun, 26 Feb 2012 19:14:07 GMT <link>https://svn.boost.org/trac10/ticket/6620#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6620#comment:1</guid> <description> <p> See also <a class="ext-link" href="http://stackoverflow.com/questions/6777278/what-is-the-rationale-for-renaming-monotonic-clock-to-steady-clock-in-chrono"><span class="icon">​</span>http://stackoverflow.com/questions/6777278/what-is-the-rationale-for-renaming-monotonic-clock-to-steady-clock-in-chrono</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 29 May 2012 01:05:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6620#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6620#comment:2</guid> <description> <p> Fix applied to trunk in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/78738" title="Add support for g++ 4.7 when compiling in C++11 mode. Update revision ...">[78738]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 29 May 2012 07:27:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6620#comment:3 https://svn.boost.org/trac10/ticket/6620#comment:3 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78740" title="Merge from trunk: * Add support for g++ 4.7 when compiling in C++11 ...">[78740]</a>) Merge from trunk: </p> <ul><li>Add support for g++ 4.7 when compiling in C++11 mode. Update revision history. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6620" title="#6620: Bugs: Boost Asio error with (unreleased) gcc 4.7 - monotonic / steady clock (closed: fixed)">#6620</a>. </li></ul><ul><li>Use the thread's private_op_queue for handlers returned by the reactor task. This fixes a problem where signal_set handlers are not being called when the io_service's concurrency hint is set to 1. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6657" title="#6657: Bugs: mac os x: signal_set does not notify the handler (closed: fixed)">#6657</a>. </li></ul> Ticket anonymous Thu, 31 Jul 2014 13:30:47 GMT <link>https://svn.boost.org/trac10/ticket/6620#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6620#comment:4</guid> <description> <p> i don't think this is fixed </p> </description> <category>Ticket</category> </item> </channel> </rss>