Made construction from std::basic_string_view explicit

This commit is contained in:
John Wellbelove 2024-11-24 08:53:51 +00:00
parent d5cd9567cd
commit 75f7292447

View File

@ -172,7 +172,7 @@ namespace etl
/// Constructor from std::basic string_view
//*************************************************************************
template <typename TStdTraits>
ETL_CONSTEXPR basic_string_view(const std::basic_string_view<T, TStdTraits>& other) ETL_NOEXCEPT
explicit ETL_CONSTEXPR basic_string_view(const std::basic_string_view<T, TStdTraits>& other) ETL_NOEXCEPT
: mbegin(other.data())
, mend(other.data() + other.size())
{