Skip to content

Instantly share code, notes, and snippets.

@splinterofchaos
Created December 9, 2012 23:09
Show Gist options
  • Select an option

  • Save splinterofchaos/4247443 to your computer and use it in GitHub Desktop.

Select an option

Save splinterofchaos/4247443 to your computer and use it in GitHub Desktop.
Does it run?
#include <tuple>
template< class X > struct Hold {
X x;
constexpr Hold( X x ) : x(std::move(x)) { }
};
constexpr auto a = Hold<int>( 1 );
constexpr auto b = Hold<std::tuple<int>>( std::tuple<int>(1) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment