删除 NBTS 构造函数,更换为 std::string_view

This commit is contained in:
keqingmoe 2025-03-14 12:34:47 +08:00
parent f47d5dd8f3
commit 1b1f8e6d0c

View File

@ -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;