diff --git a/ChangeLog.rst b/ChangeLog.rst index 75a009e4..6d4ecbfb 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,3 +1,54 @@ +6.2.0 - TBD +----------- + +* Moved OS-specific APIs such as ``windows_error`` from ``fmt/format.h`` to + ``fmt/os.h``. You can define ``FMT_DEPRECATED_INCLUDE_OS`` to automatically + include ``fmt/os.h`` from ``fmt/format.h`` for compatibility but this will be + disabled in the new major release. + +* Improved error reporting when trying to format an object of a non-formattable + type: + + .. code:: c++ + + fmt::format("{}", S()); + + now gives:: + + include/fmt/core.h:1015:5: error: static_assert failed due to requirement + 'formattable' "Cannot format argument. To make type T formattable provide a + formatter specialization: + https://fmt.dev/latest/api.html#formatting-user-defined-types" + static_assert( + ^ + ... + note: in instantiation of function template specialization + 'fmt::v6::format' requested here + fmt::format("{}", S()); + ^ + + if ``S`` is not formattable. + +* Added precision overflow detection in floating-point formatting. + +* Switched links to HTTPS in README + (`#1481 `_). + Thanks `@imba-tjd (谭九鼎) `_. + +* Improved detection of the ``fallthrough`` attribute + (`#1469 `_, + `#1475 `_). + Thanks `@federico-busato (Federico) `_, + `@chronoxor (Ivan Shynkarenka) `_. + +* Fixed various warnings and compilation issues + (`#1433 `_, + `#1470 `_, + `#1480 `_). + Thanks `@marti4d (Chris Martin) `_, + `@iPherian `_, + `@parkertomatoes `_. + 6.1.2 - 2019-12-11 ------------------ diff --git a/include/fmt/format.h b/include/fmt/format.h index c5ed29be..c6898dae 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -43,6 +43,10 @@ #include "core.h" +#ifdef FMT_DEPRECATED_INCLUDE_OS +# include "os.h" +#endif + #ifdef __INTEL_COMPILER # define FMT_ICC_VERSION __INTEL_COMPILER #elif defined(__ICL)