mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-27 03:30:32 +00:00
Add std::basic_string allocator support (#441)
This commit is contained in:
parent
72d9fffd78
commit
0473c48f88
@ -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()) {}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user