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

error: no matching function for call to 'vsprintf' #920

Closed
Kronuz opened this issue Oct 25, 2018 · 1 comment
Closed

error: no matching function for call to 'vsprintf' #920

Kronuz opened this issue Oct 25, 2018 · 1 comment

Comments

@Kronuz
Copy link
Contributor

Kronuz commented Oct 25, 2018

When passing a native std::string_view to vsprintf's format, I get such error.

main.cc: error: no matching function for call to 'vsprintf'
        return fmt::vsprintf(format, fmt::make_printf_args(std::forward<Args>(args)...));
               ^~~~~~~~~~~~~
fmt/printf.h:585:1: note: candidate template ignored: could not match 'fmt::v5::basic_string_view' against 'std::__1::basic_string_view'
        vsprintf(basic_string_view<Char> format,
        ^

I'm using clang 7.0.0 and libfmt at master (commit 1e3dcbb)

@vitaut
Copy link
Contributor

vitaut commented Oct 25, 2018

Fixed in 0a96c03, thanks for reporting.

@vitaut vitaut closed this as completed Oct 25, 2018
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