From d0e7ca0bee48c46c8fd883e014f4b58fb6cfba87 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 28 May 2021 02:48:07 +0200 Subject: [PATCH] Merge functions --- include/duckhandy/implem/int_conv.hpp | 5 +++-- include/duckhandy/implem/reversed_sized_array_bt.hpp | 7 ------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/include/duckhandy/implem/int_conv.hpp b/include/duckhandy/implem/int_conv.hpp index 5dc8903..11cceb0 100644 --- a/include/duckhandy/implem/int_conv.hpp +++ b/include/duckhandy/implem/int_conv.hpp @@ -320,8 +320,9 @@ namespace dhandy { return std::string(int_to_ary(num).to_string_view()); } - template - std::string operator+ (std::string a, const ReversedSizedArray& b) { + template + inline + std::basic_string operator+ (std::basic_string a, const ReversedSizedArray& b) { a.append(b.data(), b.size() - 1); return a; } diff --git a/include/duckhandy/implem/reversed_sized_array_bt.hpp b/include/duckhandy/implem/reversed_sized_array_bt.hpp index a6904f2..36e886c 100644 --- a/include/duckhandy/implem/reversed_sized_array_bt.hpp +++ b/include/duckhandy/implem/reversed_sized_array_bt.hpp @@ -72,13 +72,6 @@ namespace dhandy { stream << arr.to_string_view(); return stream; } - - template - inline - std::basic_string operator+ (std::basic_string&& a, const ReversedSizedArray& b) { - a.insert(a.end(), b.begin(), b.end()); - return a; - } #endif } //namespace dhandy