[Bug libstdc++/113500] Using std::format with float or double based std::chrono::time_point causes error: no match for 'operator<<'
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 19 07:45:06 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113500
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Hirthammer from comment #0)
> Consider the following code snippet:
As stated at https://gcc.gnu.org/bugs we want a complete test case, not a
snippet.
#include <chrono>
#include <format>
std::chrono::sys_time<std::chrono::duration<float>> tp = {};
auto time_string = std::format("{:%S}", tp);
More information about the Gcc-bugs
mailing list