diff --git a/include/fmt/core.h b/include/fmt/core.h index ba3859da..024a7912 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -140,10 +140,12 @@ class basic_string_view { /** \rst - Constructs a string reference from an ``std::string`` object. + Constructs a string reference from a ``std::basic_string`` object. \endrst */ - constexpr basic_string_view(const std::basic_string &s) FMT_NOEXCEPT + template + constexpr basic_string_view( + const std::basic_string &s) FMT_NOEXCEPT : data_(s.c_str()), size_(s.size()) {} /**