Skip to content

fmt::format of color.h refuses to compile #1305

@mrksngl

Description

@mrksngl

The following code does not compile (tested under GCC 9.1.0)

#include <fmt/format.h>
#include <fmt/color.h>
void test() {
auto x = fmt::format(fmt::fg(fmt::terminal_color::green), "{}", "Test");
}

The template parameter pack Args is not inferred when calling internal::make_args_checked. Passing the pack explicitly helps: {internal::make_args_checked<Args...>(format_str, args...)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions