Created
April 17, 2017 09:58
-
-
Save deque-blog/df30de5fd9f25c28abedb84394ae7d83 to your computer and use it in GitHub Desktop.
This file contains 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
template<typename Output> | |
struct to_object | |
{ | |
template<typename... Args> | |
Output operator()(Args&& ... args) const | |
{ | |
return Output { std::forward<Args&&>(args)...}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment