fix: creation of std::string_view in basic_fixed_string::view() now is compatible with C++20
This commit is contained in:
1 parent
901e718deb
commit
5183a5c830
1 file changed
+1
-1
+1
-1
@@ -88,7 +88,7 @@ struct basic_fixed_string {
|
||||
|
||||
[[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>
|
||||
|
||||
Reference in new issue
Block a user