diff --git a/include/sol/proxy_base.hpp b/include/sol/proxy_base.hpp index c473554a..3934182b 100644 --- a/include/sol/proxy_base.hpp +++ b/include/sol/proxy_base.hpp @@ -49,6 +49,11 @@ namespace sol { return super.template get(); } + operator std::string_view() const { + const Super& super = *static_cast(static_cast(this)); + return super.template get(); + } + template >, is_proxy_primitive>> = meta::enabler> operator T() const { const Super& super = *static_cast(static_cast(this));