A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/fmtlib/fmt/issues/3758 below:

Green Day Support · Issue #3758 · fmtlib/fmt · GitHub

{fmt} doesn't support printing green day at the moment:

#include <fmt/chrono.h>
#include <fmt/color.h>

int main() {
  fmt::print(fg(fmt::color::green), "{}", std::chrono::day());
}

Error:

include/fmt/core.h:1594:63: error: implicit instantiation of undefined template 'fmt::detail::type_is_unformattable_for<const std::chrono::day, char>'
    type_is_unformattable_for<T, typename Context::char_type> _;
                                                              ^
...
include/fmt/core.h:1597:3: error: static assertion failed due to requirement 'formattable': Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
  static_assert(
  ^
2 errors generated.

robindegen, ax3l, carlosal1015 and TheClonerx


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4