Fix ""_sv literal being non-constexpr

This commit is contained in:
Jason Rhinelander 2020-04-23 21:59:24 -03:00
parent 730633bbae
commit a812abd422
1 changed files with 1 additions and 1 deletions

View File

@ -305,6 +305,6 @@ using ustring_view = simple_string_view<unsigned char>;
// implementation in pre-C++17.
namespace lokimq {
inline namespace literals {
inline string_view operator""_sv(const char* str, size_t len) { return {str, len}; }
inline constexpr string_view operator""_sv(const char* str, size_t len) { return {str, len}; }
}
}