[ox/std] Make String(StringView) constructor explicit, add StringLiteral

This commit is contained in:
2023-11-28 23:31:11 -06:00
parent 7008ebfb40
commit 3a62650d62
10 changed files with 137 additions and 243 deletions

View File

@@ -324,7 +324,7 @@ constexpr Vector<T, SmallVectorSize, Allocator>::Vector(std::size_t size) noexce
template<typename T, std::size_t SmallVectorSize, typename Allocator>
constexpr Vector<T, SmallVectorSize, Allocator>::Vector(std::initializer_list<T> list) noexcept {
for (auto &item : list) {
emplace_back(item);
emplace_back(std::move(item));
}
}