#ifndef INCLUDED_CLOCKTIMECONV_ #define INCLUDED_CLOCKTIMECONV_ // previously included by demo.cc. Not needed anymore #include namespace std { namespace chrono { template struct clock_time_conversion {}; template struct clock_time_conversion { template [[nodiscard]] time_point operator() (time_point const & timePoint) const noexcept(is_arithmetic::value) // strengthened { std::cout << "clock_time_conversion 1\n"; return timePoint; } }; template <> struct clock_time_conversion { template [[nodiscard]] sys_time operator()( sys_time const &timePoint) const noexcept(is_arithmetic::value) // strengthened { std::cout << "clock_time_conversion 2\n"; return timePoint; } }; // No utc_clock in chrono. // ======================= // //template <> //struct clock_time_conversion { // template // [[nodiscard]] utc_time operator()(const utc_time& timePoint) const // noexcept(is_arithmetic_v) /* strengthened */ { // return timePoint; // } //}; // //// [time.clock.cast.sys.utc] // //template <> //struct clock_time_conversion { // template // [[nodiscard]] utc_time> operator()(const sys_time& _Sys_time) const { // return utc_clock::from_sys(_Sys_time); // } //}; // //template <> //struct clock_time_conversion { // template // [[nodiscard]] sys_time> operator()(const utc_time& _Utc_time) const { // return utc_clock::to_sys(_Utc_time); // } //}; } } #endif