catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Improve documentation of CATCH_MOVE and CATCH_FORWARD
- Commit
c6640e4f470b99c9d95758bfd62d6205095757e6- Author
- Martin Hořeňovský ·
- Parents
23f0d94b4f00
Changes
src/catch2/internal/catch_move_and_forward.hpp | 4 ++-- 1 file 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