Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
ded5b72b
Commit
ded5b72b
authored
Sep 24, 2020
by
Praetorius, Simon
Browse files
implement macro FWD() directly using static_cast instead of std::forward
parent
77862e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/common/TypeTraits.hpp
View file @
ded5b72b
...
@@ -73,7 +73,7 @@ namespace AMDiS
...
@@ -73,7 +73,7 @@ namespace AMDiS
/// Macro for forwarding universal references to obj
/// Macro for forwarding universal references to obj
#define FWD(
obj
) st
d::forward<decltype(obj)>(obj
)
#define FWD(
...
) st
atic_cast<decltype(__VA_ARGS__)>(__VA_ARGS__
)
/// A decay version of decltype, similar to GCCs __typeof__
/// A decay version of decltype, similar to GCCs __typeof__
#define TYPEOF(...) AMDiS::remove_cvref_t<decltype(__VA_ARGS__)>
#define TYPEOF(...) AMDiS::remove_cvref_t<decltype(__VA_ARGS__)>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment