Created
July 23, 2015 19:04
-
-
Save pfultz2/4832d6ba2d92ae44924a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MEMBER_LIFT_CLASS(m) \ | |
struct member_##m { \ | |
template<class T, class... Ts> \ | |
auto operator()(T&& x, Ts&&... xs) const -> decltype(x.m(std::forward<Ts>(xs)...)) \ | |
{ return x.m(std::forward<Ts>(xs)...); } \ | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment