diff options
| author | Martin Hořeňovský | 2021-09-30 20:40:24 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-09-30 20:40:24 +0200 |
| commit | c6640e4f470b99c9d95758bfd62d6205095757e6 (patch) | |
| tree | c91dfc38e38339ec9049046fa9b72256406c8ae2 /src/catch2 | |
| parent | 23f0d94b4f00179c26a6a6b881df67246fd0e921 (diff) | |
| download | catch3-c6640e4f470b99c9d95758bfd62d6205095757e6.tar.gz | |
Improve documentation of CATCH_MOVE and CATCH_FORWARD
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_move_and_forward.hpp | 4 |
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 |