diff options
| author | Neal Coombes | 2017-11-17 14:15:26 -0600 |
|---|---|---|
| committer | Neal Coombes | 2017-11-17 14:15:26 -0600 |
| commit | fe725648a7c288db925456ddc23cdd582f210d1b (patch) | |
| tree | 318d224ea68a7eaa1d0044f758886ad9b58dcf2a /include/internal/catch_stringref.cpp | |
| parent | b0c379f62122c95e7494fd6349b3804d58906793 (diff) | |
| download | catch3-fe725648a7c288db925456ddc23cdd582f210d1b.tar.gz | |
performance improvement - StringRef::operator=
inlined and reduced data copy in half.
Further work on #1086.
Brings test from 0m44.942s to 0m37.913.
Diffstat (limited to 'include/internal/catch_stringref.cpp')
| -rw-r--r-- | include/internal/catch_stringref.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp index 5a15bbf6..49d9629f 100644 --- a/include/internal/catch_stringref.cpp +++ b/include/internal/catch_stringref.cpp @@ -17,10 +17,6 @@ namespace Catch { - auto StringRef::operator = ( StringRef other ) noexcept -> StringRef& { - swap( other ); - return *this; - } StringRef::operator std::string() const { return std::string( m_start, m_size ); } |