Skip to content

Instantly share code, notes, and snippets.

@carmel4a
Created January 24, 2019 13:29
Show Gist options
  • Save carmel4a/0f9215f38fc12e676dbd867c6e9ba21c to your computer and use it in GitHub Desktop.
Save carmel4a/0f9215f38fc12e676dbd867c6e9ba21c to your computer and use it in GitHub Desktop.
template< class T, class V=void, class ...Args >
auto create( V v, Args... args ) -> T&
{
childs.emplace_back( std::make_unique< T >( v, args... ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment