Skip to content

5.1.0

Compare
Choose a tag to compare
@vitaut vitaut released this 05 Jul 13:25
  • Added experimental support for RGB color output enabled with the FMT_EXTENDED_COLORS macro:

    #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 #767). Thanks @Remotion (Remo).

  • Added quotes to strings in ranges and tuples (#766). Thanks @Remotion (Remo).

  • Made format_to work with basic_memory_buffer (#776).

  • Added vformat_to_n and wchar_t overload of format_to_n (#764, #769).

  • Made is_range and is_tuple_like part of public (experimental) API to allow specialization for user-defined types (#751, #759). Thanks @drrlvn (Dror Levin).

  • Added more compilers to continuous integration and increased FMT_PEDANTIC warning levels (#736). Thanks @eliaskosunen (Elias Kosunen).

  • Fixed compilation with MSVC 2013.

  • Fixed handling of user-defined types in format_to (#793).

  • Forced linking of inline vformat functions into the library (#795).

  • Fixed incorrect call to on_align in '{:}=' (#750).

  • Fixed floating-point formatting to a non-back_insert_iterator with sign & numeric alignment specified (#756).

  • Fixed formatting to an array with format_to_n (#778).

  • Fixed formatting of more than 15 named arguments (#754).

  • Fixed handling of compile-time strings when including fmt/ostream.h. (#768).

  • Fixed various compiler warnings and errors (#742, #748, #752, #770, #775, #779, #780, #790, #792, #800). Thanks @Remotion (Remo), @gabime (Gabi Melman), @foonathan (Jonathan Müller), @Dark-Passenger (Dhruv Paranjape), and @0x8000-0000 (Sign Bit).