From d174afecde0487f788b67fc440728e360bb056c2 Mon Sep 17 00:00:00 2001 From: Stephane Janel Date: Wed, 17 Jan 2024 23:48:05 +0100 Subject: [PATCH] Add cct::string::operator+= with std::string_view --- src/tech/include/fbstring.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tech/include/fbstring.hpp b/src/tech/include/fbstring.hpp index d8aa2028..23f0e7d8 100644 --- a/src/tech/include/fbstring.hpp +++ b/src/tech/include/fbstring.hpp @@ -1395,6 +1395,11 @@ class basic_fbstring { return *this; } + /// \sjanel - Add operator+= string_view + template >::value && + !std::is_convertible::value, bool>::type = true> + basic_fbstring& operator+=(const SV& sv) { return append(sv); } + basic_fbstring& append(const basic_fbstring& str); basic_fbstring& append(