mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Improve documentation of CATCH_MOVE and CATCH_FORWARD
This commit is contained in:
parent
23f0d94b4f
commit
c6640e4f47
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user