The new open-source fmt 6.2.0 release has been announced and is now available for download from the official repository.
This formatting library for C++ comes with some improvements and optimizations including reduced library size. Also included is improved error reporting when trying to format an object of a non-formattable type.
There is now explicit printing of the decimal point if # is specified. This example here fmt::print("{:#.0f}", 42.0);
would now print 42.
when implemented. This is in addition to other formating specifiers.
OS-specific APIs have been moved to a dedicated file. UTF-8 handling has also got some improvements together with dynamic argument storage.
To these and the entire list of fixes and improvements, you can check out the release notes from the official source repository. You can also download the fmt 6.2.0 release library from the Github repo here.
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.