Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created April 17, 2017 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/df30de5fd9f25c28abedb84394ae7d83 to your computer and use it in GitHub Desktop.
Save deque-blog/df30de5fd9f25c28abedb84394ae7d83 to your computer and use it in GitHub Desktop.
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