Add std::basic_string allocator support (#441)

This commit is contained in:
Victor Zverovich 2018-01-21 18:21:16 -08:00
parent 72d9fffd78
commit 0473c48f88

View File

@ -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<Char> &s) FMT_NOEXCEPT
template <typename Alloc>
constexpr basic_string_view(
const std::basic_string<Char, Alloc> &s) FMT_NOEXCEPT
: data_(s.c_str()), size_(s.size()) {}
/**