From 0473c48f88f2fe3065af3cc883467cdac2a96757 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 21 Jan 2018 18:21:16 -0800 Subject: [PATCH] Add std::basic_string allocator support (#441) --- include/fmt/core.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()) {} /**