Commit ded5b72b authored by Praetorius, Simon's avatar Praetorius, Simon

implement macro FWD() directly using static_cast instead of std::forward

parent 77862e92
Pipeline #4881 passed with stage
in 42 minutes and 28 seconds
......@@ -73,7 +73,7 @@ namespace AMDiS
/// Macro for forwarding universal references to obj
#define FWD(obj) std::forward<decltype(obj)>(obj)
#define FWD(...) static_cast<decltype(__VA_ARGS__)>(__VA_ARGS__)
/// A decay version of decltype, similar to GCCs __typeof__
#define TYPEOF(...) AMDiS::remove_cvref_t<decltype(__VA_ARGS__)>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment