Skip to content

Instantly share code, notes, and snippets.

@jrmwng
Created September 28, 2015 17:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jrmwng/d884b5b0893880e3a926 to your computer and use it in GitHub Desktop.
Save jrmwng/d884b5b0893880e3a926 to your computer and use it in GitHub Desktop.
c++ class wrapper with perfect forwarded constructor
template <typename wrappee_type>
struct wrapper_t : wrappee_type
{
template <class... TArgs>
wrapper_t(TArgs &&... _Args)
: wrappee_type(std::forward<TArgs>(_Args)...)
{}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment