Re: [Boost-bugs] [Boost C++ Libraries] #11631: boost chrono io v2 does not let you support custom clocks

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11631: boost chrono io v2 does not let you support custom clocks
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-10 06:05:16


#11631: boost chrono io v2 does not let you support custom clocks
--------------------------------------------------+----------------------
  Reporter: Sébastien Barthélémy <barthelemy@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------+----------------------
Changes (by viboes):

 * status: new => assigned

Comment:

 My bad. maybe the documentation is not explicit enough that this is not
 supported.

 The reference states the possible customization points

 {{{
   protected:
     virtual ~time_point_units();
     virtual string_type do_get_epoch(system_clock) const=0;
     virtual string_type do_get_epoch(steady_clock) const=0;

 #if defined(BOOST_CHRONO_HAS_PROCESS_CLOCKS)
     virtual string_type do_get_epoch(process_real_cpu_clock) const=0;
     virtual string_type do_get_epoch(process_user_cpu_clock) const=0;
     virtual string_type do_get_epoch(process_system_cpu_clock) const=0;
     virtual string_type do_get_epoch(process_cpu_clock) const=0;
 #endif
 #if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
     virtual string_type do_get_epoch(thread_clock) const=0;
 #endif}}}

 I would need to type erase the clock in someway, but I don't know how the
 user could identify its clock.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11631#comment:1>
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:19 UTC