Skip to content

Instantly share code, notes, and snippets.

@sguzman
Created February 15, 2014 20:35
Show Gist options
  • Save sguzman/9024898 to your computer and use it in GitHub Desktop.
Save sguzman/9024898 to your computer and use it in GitHub Desktop.
#include <utility>
template <template <typename...> class TemplateClass, typename... Args>
TemplateClass<Args...> make(Args&&... args)
{
return TemplateClass<Args...>(std::forward<Args>(args)...);
}
int main()
{
auto&& obj = make<std::pair>(1, 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment