I have a class with a std::chrono::time_point member. In one of the class functions I want to create another time_point with the same clock type.
How do I take the clock type from my member?
I tried doing:
std::chrono::time_point<std::chrono::system_clock> m_time_point;
std::chrono::time_point<m_time_point.clock> new_tp(some_duration)
but this results with an error: cannot refer to type member 'clock' in 'std::chrono::time_point' with '.'