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

Merge branch 'feature/forward' into 'master'

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

See merge request !210
parents 7e69d815 ded5b72b
Pipeline #4934 canceled with stage
......@@ -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