C++ Format v1.0.0 Release Notes
Release Date: 2015-02-05 // about 9 years ago-
- Add support for a header-only configuration when
FMT_HEADER_ONLY
is defined before includingformat.h
:
.. code:: c++
#define FMT_HEADER_ONLY #include "format.h"
Compute string length in the constructor of
BasicStringRef
instead of thesize
method (#79 <https://github.com/fmtlib/fmt/issues/79>
_). This eliminates size computation for string literals on reasonable optimizing compilers.๐ Fix formatting of types with overloaded
operator <<
forstd::wostream
(#86 <https://github.com/fmtlib/fmt/issues/86>
_):
.. code:: c++
fmt::format(L"The date is {0}", Date(2012, 12, 9));
๐ Fix linkage of tests on Arch Linux (
#89 <https://github.com/fmtlib/fmt/issues/89>
_).๐ Allow precision specifier for non-float arguments (
#90 <https://github.com/fmtlib/fmt/issues/90>
_):
.. code:: c++
fmt::print("{:.3}\n", "Carpet"); // prints "Car"
๐ Fix build on Android NDK (
#93 <https://github.com/fmtlib/fmt/issues/93>
_)๐ Improvements to documentation build procedure.
๐ Remove
FMT_SHARED
CMake variable in favor of standardBUILD_SHARED_LIBS <http://www.cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html>
_.๐ Fix error handling in
fmt::fprintf
.๐ Fix a number of warnings.
- Add support for a header-only configuration when