fix: creation of std::string_view in basic_fixed_string::view() now is compatible with C++20

This commit is contained in:
Mateusz Pusz
2024-01-18 18:41:29 +01:00
parent 901e718deb
commit 5183a5c830

View File

@@ -88,7 +88,7 @@ struct basic_fixed_string {
[[nodiscard]] constexpr std::basic_string_view<CharT> view() const noexcept [[nodiscard]] constexpr std::basic_string_view<CharT> view() const noexcept
{ {
return std::basic_string_view<CharT>(*this); return std::basic_string_view<CharT>(cbegin(), cend());
} }
template<std::size_t N2> template<std::size_t N2>