删除 NBTS 构造函数,更换为 std::string_view
This commit is contained in:
parent
f47d5dd8f3
commit
1b1f8e6d0c
@ -151,13 +151,10 @@ public:
|
||||
append(sv);
|
||||
}
|
||||
|
||||
template <std::size_t N>
|
||||
constexpr basic_string(const char (&str)[N], allocator_type alloc = allocator_type{})
|
||||
constexpr basic_string(std::string_view sv, allocator_type alloc = allocator_type{})
|
||||
: basic_string{std::move(alloc)}
|
||||
{
|
||||
append(string_view{
|
||||
std::string_view{str, N}
|
||||
});
|
||||
append(sv);
|
||||
}
|
||||
|
||||
constexpr basic_string(std::nullptr_t) = delete;
|
||||
|
Loading…
Reference in New Issue
Block a user