Corentin Schreiber 7f8d419115
Fix overflow in time_point formatting with large dates (#3727)
* Fix #3725 and rename fmt_safe_duration_cast to fmt_duration_cast
The function is now more generic and will handle all casts. It also
takes care of toggling safe vs unsafe casts using
FMT_SAFE_DURATION_CAST.

* Refactor fmt_duration_cast to put #ifdef inside the function

* Fix compilation error with FMT_USE_LOCAL_TIME
2023-11-25 08:36:55 -08:00
..
args.h Update docs 2023-06-13 18:58:15 +03:00
chrono.h Fix overflow in time_point formatting with large dates (#3727) 2023-11-25 08:36:55 -08:00
color.h Mark styled_arg as a view to prevent lifetime issues 2023-09-09 08:16:45 -07:00
compile.h Optimize compiled format_to_n 2023-07-20 12:35:01 -07:00
core.h Clarify that calling non-const format is deprecated 2023-11-24 10:21:57 -08:00
format-inl.h Fix flushing C++ iostreams before calling write_console() (#3689) 2023-10-25 13:13:31 -07:00
format.h Fix handling of invalid Unicode in precision 2023-11-18 08:36:11 -10:00
os.h Improve OpenBSD workaround 2023-11-07 09:24:33 -10:00
ostream.h Fix the default locale in ostream_formatter 2023-11-24 09:24:43 -08:00
printf.h Apply clang-format 2023-10-14 06:52:43 -07:00
ranges.h Merge the copyright comment since there are many contributors 2023-09-04 06:54:07 -07:00
std.h Added workaround for old xcode compiler bug (#3716) 2023-11-15 09:19:08 -08:00
xchar.h Cleanup xchar API 2023-05-12 07:05:14 -07:00