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