Skip to content

Instantly share code, notes, and snippets.

@jrmwng
jrmwng / wrapper.hpp
Created Sep 28, 2015
c++ class wrapper with perfect forwarded constructor
View wrapper.hpp
template <typename wrappee_type>
struct wrapper_t : wrappee_type
{
template <class... TArgs>
wrapper_t(TArgs &&... _Args)
: wrappee_type(std::forward<TArgs>(_Args)...)
{}
};