Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mrksngl opened this issue Sep 8, 2019 · 1 comment
Closed

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

mrksngl opened this issue Sep 8, 2019 · 1 comment

Comments

@mrksngl
Copy link

mrksngl commented Sep 8, 2019

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...)}

@vitaut
Copy link
Contributor

vitaut commented Sep 9, 2019

Fixed in 0656045. Thanks for reporting!

@vitaut vitaut closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants