Created
September 28, 2015 17:18
-
-
Save jrmwng/d884b5b0893880e3a926 to your computer and use it in GitHub Desktop.
c++ class wrapper with perfect forwarded constructor
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 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