diff options
| author | Martin Hořeňovský | 2019-09-08 21:01:33 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-09-08 21:01:33 +0200 |
| commit | 9f4c4777a5136a3e1f276398799961e9ccb4b572 (patch) | |
| tree | 44bd2585f5dc375a25297ae7b22082a69168aad4 /include/internal/catch_stringref.cpp | |
| parent | 293012a002ef5351adbfcc0cbf7cdfdc93aed115 (diff) | |
| download | catch3-9f4c4777a5136a3e1f276398799961e9ccb4b572.tar.gz | |
Remove (mostly) unused overloads of StringRef operator +
Diffstat (limited to 'include/internal/catch_stringref.cpp')
| -rw-r--r-- | include/internal/catch_stringref.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp index 8e6741b1..0c617b49 100644 --- a/include/internal/catch_stringref.cpp +++ b/include/internal/catch_stringref.cpp @@ -76,20 +76,6 @@ namespace Catch { return m_start[index]; } - auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> std::string { - std::string str; - str.reserve( lhs.size() + rhs.size() ); - str += lhs; - str += rhs; - return str; - } - auto operator + ( StringRef const& lhs, const char* rhs ) -> std::string { - return std::string( lhs ) + std::string( rhs ); - } - auto operator + ( char const* lhs, StringRef const& rhs ) -> std::string { - return std::string( lhs ) + std::string( rhs ); - } - auto operator << ( std::ostream& os, StringRef const& str ) -> std::ostream& { return os.write(str.currentData(), str.size()); } |