Skip to content

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

Closed
@Kronuz

Description

@Kronuz

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)

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