Skip to content

Commit

Permalink
Add cct::string::operator+= with std::string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanel committed Jan 17, 2024
1 parent f3ece04 commit d174afe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tech/include/fbstring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,11 @@ class basic_fbstring {
return *this;
}

/// \sjanel - Add operator+= string_view
template <class SV, typename std::enable_if<std::is_convertible<const SV&, std::basic_string_view<E, T> >::value &&
!std::is_convertible<const SV&, const E*>::value, bool>::type = true>
basic_fbstring& operator+=(const SV& sv) { return append(sv); }

basic_fbstring& append(const basic_fbstring& str);

basic_fbstring& append(
Expand Down

0 comments on commit d174afe

Please sign in to comment.