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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-09-30 20:40:24 +0200
committerMartin Hořeňovský2021-09-30 20:40:24 +0200
commitc6640e4f470b99c9d95758bfd62d6205095757e6 (patch)
treec91dfc38e38339ec9049046fa9b72256406c8ae2 /src
parent23f0d94b4f00179c26a6a6b881df67246fd0e921 (diff)
downloadcatch3-c6640e4f470b99c9d95758bfd62d6205095757e6.tar.gz
Improve documentation of CATCH_MOVE and CATCH_FORWARD
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_move_and_forward.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_move_and_forward.hpp b/src/catch2/internal/catch_move_and_forward.hpp
index 70520308..01b7adae 100644
--- a/src/catch2/internal/catch_move_and_forward.hpp
+++ b/src/catch2/internal/catch_move_and_forward.hpp
@@ -10,10 +10,10 @@
#include <type_traits>
-//! TODO: replaces std::move for better performance
+//! Replacement for std::move with better compile time performance
#define CATCH_MOVE(...) static_cast<std::remove_reference_t<decltype(__VA_ARGS__)>&&>(__VA_ARGS__)
+//! Replacement for std::forward with better compile time performance
#define CATCH_FORWARD(...) static_cast<decltype(__VA_ARGS__)&&>(__VA_ARGS__)
#endif // CATCH_MOVE_AND_FORWARD_HPP_INCLUDED
- \ No newline at end of file