diff --git a/include/boost/core/string_view.hpp b/include/boost/core/string_view.hpp index 2aae97b..4272b69 100644 --- a/include/boost/core/string_view.hpp +++ b/include/boost/core/string_view.hpp @@ -383,23 +383,11 @@ public: // conversions -#if !defined(BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS) - - template >::type> - operator std::basic_string() const + template operator std::basic_string, A>() const { - return std::basic_string( data(), size() ); + return std::basic_string, A>( data(), size() ); } -#else - - operator std::basic_string() const - { - return std::basic_string( data(), size() ); - } - -#endif - #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) template >::type>