diff --git a/src/ox/std/cstringview.hpp b/src/ox/std/cstringview.hpp index 7abd7e985..75ed81d59 100644 --- a/src/ox/std/cstringview.hpp +++ b/src/ox/std/cstringview.hpp @@ -8,13 +8,10 @@ #pragma once -#ifdef OX_USE_STDLIB -#include -#endif - #include "basestringview.hpp" #include "bstring.hpp" #include "string.hpp" +#include "stringliteral.hpp" namespace ox { @@ -24,6 +21,8 @@ class CStringView: public detail::BaseStringView { constexpr CStringView(CStringView const&sv) noexcept = default; + constexpr CStringView(StringLiteral const&str) noexcept: BaseStringView(str.data(), str.len()) {} + template constexpr CStringView(BasicString const&str) noexcept: BaseStringView(str.data(), str.len()) {}