Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_stringref.cpp
diff options
context:
space:
mode:
authorNeal Coombes2017-11-17 14:15:26 -0600
committerNeal Coombes2017-11-17 14:15:26 -0600
commitfe725648a7c288db925456ddc23cdd582f210d1b (patch)
tree318d224ea68a7eaa1d0044f758886ad9b58dcf2a /include/internal/catch_stringref.cpp
parentb0c379f62122c95e7494fd6349b3804d58906793 (diff)
downloadcatch3-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.cpp4
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 );
}