C++ Format v5.1.0 Release Notes

Release Date: 2018-07-05 // almost 6 years ago
    • โž• Added experimental support for RGB color output enabled with the FMT_EXTENDED_COLORS macro:

    .. code:: c++

     #define FMT_EXTENDED_COLORS
     #define FMT_HEADER_ONLY // or compile fmt with FMT_EXTENDED_COLORS defined
     #include <fmt/format.h>
    
     fmt::print(fmt::color::steel_blue, "Some beautiful text");
    

    The old API (the print_colored and vprint_colored functions and the color enum) is now deprecated. (#762 <https://github.com/fmtlib/fmt/issues/762>_ #767 <https://github.com/fmtlib/fmt/pull/767>). thanks @remotion (remo) <https://github.com/remotion>.

    • โž• Added quotes to strings in ranges and tuples (#766 <https://github.com/fmtlib/fmt/pull/766>). Thanks @Remotion (Remo) <https://github.com/Remotion>.

    • Made format_to work with basic_memory_buffer (#776 <https://github.com/fmtlib/fmt/issues/776>_).

    • Added vformat_to_n and wchar_t overload of format_to_n (#764 <https://github.com/fmtlib/fmt/issues/764>, #769 <https://github.com/fmtlib/fmt/issues/769>).

    • Made is_range and is_tuple_like part of public (experimental) API to allow specialization for user-defined types (#751 <https://github.com/fmtlib/fmt/issues/751>, #759 <https://github.com/fmtlib/fmt/pull/759>). Thanks @drrlvn (Dror Levin) <https://github.com/drrlvn>_.

    • โž• Added more compilers to continuous integration and increased FMT_PEDANTIC warning levels (#736 <https://github.com/fmtlib/fmt/pull/736>). Thanks @eliaskosunen (Elias Kosunen) <https://github.com/eliaskosunen>.

    • ๐Ÿ›  Fixed compilation with MSVC 2013.

    • ๐Ÿ›  Fixed handling of user-defined types in format_to (#793 <https://github.com/fmtlib/fmt/issues/793>_).

    • ๐Ÿ‘ฎ Forced linking of inline vformat functions into the library (#795 <https://github.com/fmtlib/fmt/issues/795>_).

    • ๐Ÿ›  Fixed incorrect call to on_align in '{:}=' (#750 <https://github.com/fmtlib/fmt/issues/750>_).

    • Fixed floating-point formatting to a non-back_insert_iterator with sign & numeric alignment specified (#756 <https://github.com/fmtlib/fmt/issues/756>_).

    • Fixed formatting to an array with format_to_n (#778 <https://github.com/fmtlib/fmt/issues/778>_).

    • ๐Ÿ›  Fixed formatting of more than 15 named arguments (#754 <https://github.com/fmtlib/fmt/issues/754>_).

    • ๐Ÿ›  Fixed handling of compile-time strings when including fmt/ostream.h. (#768 <https://github.com/fmtlib/fmt/issues/768>_).

    • ๐Ÿ›  Fixed various compiler warnings and errors (#742 <https://github.com/fmtlib/fmt/issues/742>, #748 <https://github.com/fmtlib/fmt/issues/748>, #752 <https://github.com/fmtlib/fmt/issues/752>, #770 <https://github.com/fmtlib/fmt/issues/770>, #775 <https://github.com/fmtlib/fmt/pull/775>, #779 <https://github.com/fmtlib/fmt/issues/779>, #780 <https://github.com/fmtlib/fmt/pull/780>, #790 <https://github.com/fmtlib/fmt/pull/790>, #792 <https://github.com/fmtlib/fmt/pull/792>, #800 <https://github.com/fmtlib/fmt/pull/800>). Thanks @Remotion (Remo) <https://github.com/Remotion>, @gabime (Gabi Melman) <https://github.com/gabime>, @foonathan (Jonathan Mรผller) <https://github.com/foonathan>, @Dark-Passenger (Dhruv Paranjape) <https://github.com/Dark-Passenger>, and @0x8000-0000 (Sign Bit) <https://github.com/0x8000-0000>_.