mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
fix: creation of std::string_view
in basic_fixed_string::view()
now is compatible with C++20
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user