You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement this and I see no way of doing this portably, without dependencies and in C++17. It looks like formatting time_points with operator<< requires C++20. And the C library (strftime and localtime) is not thread-safe. localtime_r is not portable either. I could either do some conditional compilation on the availability of operator<<, or leave this as it is.
Activity
anarthal commentedon Oct 22, 2025
I'm trying to implement this and I see no way of doing this portably, without dependencies and in C++17. It looks like formatting time_points with
operator<<requires C++20. And the C library (strftimeandlocaltime) is not thread-safe.localtime_ris not portable either. I could either do some conditional compilation on the availability ofoperator<<, or leave this as it is.