1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00

Merge branch 'vfs_normalized_view_string' into 'master'

Do not allow to construct NormalizedView from std::string

See merge request OpenMW/openmw!4263
This commit is contained in:
psi29a 2024-07-22 07:22:02 +00:00
commit 2743c4920e

View File

@ -88,6 +88,10 @@ namespace VFS::Path
NormalizedView(const Normalized& value) noexcept;
explicit NormalizedView(const std::string&) = delete;
explicit NormalizedView(std::string&&) = delete;
constexpr std::string_view value() const noexcept { return mValue; }
friend constexpr bool operator==(const NormalizedView& lhs, const NormalizedView& rhs) = default;