Re: [Boost-bugs] [Boost C++ Libraries] #7397: Boost.Test, since boost 1.48 is using the deprecated Boost.Timer class - it should be updated to use the new class

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7397: Boost.Test, since boost 1.48 is using the deprecated Boost.Timer class - it should be updated to use the new class
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-14 16:06:07


#7397: Boost.Test, since boost 1.48 is using the deprecated Boost.Timer class - it
should be updated to use the new class
----------------------------------+-----------------------------------------
  Reporter: ja11sop@… | Owner: rogeeff
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by Sylvain Corlay <sylvain.corlay@…>):

 Hi, do you know if there exists a workarround to use the new boost timers
 (boost::timer::cpu_timer) together with boost::test ?
 I tried, in a new header my_timer.h to do the following thing:

 {{{
 namespace my
 {
 #include <boost/timer/timer.hpp>
 }
 }}}

 and then use my::boost::timer::cpu_timer instead of
 boost::timer::cpu_timer. Unfortunately, this seems to create other
 compilation problems:

 {{{
 In file included from /usr/include/boost/ratio/ratio.hpp:37:0,
                  from /usr/include/boost/chrono/duration.hpp:41,
                  from /usr/include/boost/chrono/chrono.hpp:11,
                  from /usr/include/boost/timer/timer.hpp:14,
 /usr/include/boost/ratio/detail/mpl/abs.hpp:42:16: error: expected type-
 specifier before ‘na’
 }}}
 and a whole series of other errors in boost/raio/detail/mpl. I am using
 boost 1.48 and gcc 4.4 on a ubuntu 64-bit.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7397#comment:2>
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:11 UTC