forked from catchorg/Catch2
Improve documentation of CATCH_MOVE and CATCH_FORWARD
This commit is contained in:
@@ -10,10 +10,10 @@
|
|||||||
|
|
||||||
#include <type_traits>
|
#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__)
|
#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__)
|
#define CATCH_FORWARD(...) static_cast<decltype(__VA_ARGS__)&&>(__VA_ARGS__)
|
||||||
|
|
||||||
#endif // CATCH_MOVE_AND_FORWARD_HPP_INCLUDED
|
#endif // CATCH_MOVE_AND_FORWARD_HPP_INCLUDED
|
||||||
|
|
Reference in New Issue
Block a user