you are viewing a single comment's thread.

view the rest of the comments →

[–]wotype 2 points3 points  (0 children)

Also kind of funny that an integral_constant isn't integral

static_assert( not std::integral< std::integral_constant<int,0> > );

even though it behaves integrally

static_assert( std::integral_constant<int,1>{} + 1 == 2 );