aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-06-11 19:54:51 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-06-15 10:08:43 +0200
commit72ece8137684e7dfa3c24d204db6af67040b5098 (patch)
treeca6778de7b7ab57d71c2b9db3a668b82ec5b6654 /libs/kstd
parent726ef581a9a355a3e2752ebb953baedbc0217edc (diff)
downloadkernel-72ece8137684e7dfa3c24d204db6af67040b5098.tar.xz
kernel-72ece8137684e7dfa3c24d204db6af67040b5098.zip
kstd: fix signature of basic_string::operator=
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/kstd/bits/basic_string.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/kstd/bits/basic_string.hpp b/libs/kstd/kstd/bits/basic_string.hpp
index 2ba6aea..c13b821 100644
--- a/libs/kstd/kstd/bits/basic_string.hpp
+++ b/libs/kstd/kstd/bits/basic_string.hpp
@@ -390,7 +390,7 @@ namespace kstd
template<typename StringViewLike>
requires(std::is_convertible_v<StringViewLike const &, std::basic_string_view<CharacterType, Traits>> &&
!std::is_convertible_v<StringViewLike const &, CharacterType const *>)
- constexpr auto operator=(StringViewLike const & view_like) -> basic_string
+ constexpr auto operator=(StringViewLike const & view_like) -> basic_string &
{
auto converted = std::basic_string_view<value_type, traits_type>{view_like};