Improve documentation of CATCH_MOVE and CATCH_FORWARD

This commit is contained in:
Martin Hořeňovský 2021-09-30 20:40:24 +02:00
parent 23f0d94b4f
commit c6640e4f47
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 2 additions and 2 deletions

View File

@ -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