diff --git a/fixed_string.hpp b/fixed_string.hpp index 62554e3b..975aace4 100644 --- a/fixed_string.hpp +++ b/fixed_string.hpp @@ -32,6 +32,11 @@ namespace cruft { } constexpr operator char const* () const { return value; } + constexpr operator std::string_view () const { return value; } + + constexpr char const* + c_str (void) const noexcept + { return value; } };