[Boost-bugs] [Boost C++ Libraries] #6620: Boost Asio error with (unreleased) gcc 4.7 - monotonic / steady clock

Subject: [Boost-bugs] [Boost C++ Libraries] #6620: Boost Asio error with (unreleased) gcc 4.7 - monotonic / steady clock
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-26 19:09:54


#6620: Boost Asio error with (unreleased) gcc 4.7 - monotonic / steady clock
------------------------------------------------------+---------------------
 Reporter: ramon.casellas@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.50.0 | Component: asio
  Version: Boost Development Trunk | Severity: Problem
 Keywords: std::chrono monotonic_clock steady_clock |
------------------------------------------------------+---------------------
 Dear Chris,

 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
 {{{
 #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC
     /// monotonic_clock
     struct monotonic_clock
 }}}

 4.7 snapshot
 {{{
 #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC
     /// steady_clock
     struct steady_clock
     {
 }}}

 compiling:
 {{{
 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
 }}}

 Thanks in advance and thanks for your work with boost asio
 R.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6620>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC