Re: [Boost-bugs] [Boost C++ Libraries] #9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux 11.23 IA, gcc 4.6

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux 11.23 IA, gcc 4.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-25 07:54:56


#9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux
11.23 IA, gcc 4.6
-------------------------------+--------------------------
  Reporter: gengyonghui@… | Owner: viboes
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: steady_clock
-------------------------------+--------------------------

Comment (by viboes):

 Ok. I will create a branch to take care of this issue. I will add code as
 soon as I know what to put in. I would need that you check this branch on
 your environment.

 We can start by identifying under which conditions gethrtime is available.
 Try something like that and tell me what to put in
 WHATEVER_HPUX_SPECIFIC_FLAG_ENSURES_GETHRTIME_WILL_BE_DEFINED.


 {{{
 git diff
 diff --git a/include/boost/chrono/config.hpp
 b/include/boost/chrono/config.hpp
 index 1045ba3..7ae6d8f 100644
 --- a/include/boost/chrono/config.hpp
 +++ b/include/boost/chrono/config.hpp
 @@ -84,6 +84,13 @@
  # include <time.h> //to check for CLOCK_REALTIME and CLOCK_MONOTONIC
 and _POSIX_THREAD_CPUTIME
  # if defined(CLOCK_MONOTONIC)
  # define BOOST_CHRONO_HAS_CLOCK_STEADY
 +# if BOOST_PLATFORM="HP-UX"
 +# include <user_time.h> //to check for gethrtime
 +# if
 defined(WHATEVER_HPUX_SPECIFIC_FLAG_ENSURES_GETHRTIME_WILL_BE_DEFINED)
 +# define BOOST_CHRONO_HAS_GETHRTIME
 +# define BOOST_CHRONO_HAS_CLOCK_STEADY
 +# endif
 +# endif
  # endif

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9379#comment:14>
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:17 UTC