¡@

Home 

c++ Programming Glossary: footype

Doing a static_assert that a template type is another template

http://stackoverflow.com/questions/17390605/doing-a-static-assert-that-a-template-type-is-another-template

C or new features in C 11 template T struct foo template FooType struct bar static_assert FooType is indeed foo T for some T.. T struct foo template FooType struct bar static_assert FooType is indeed foo T for some T failure how c templates boost c.. program template typename T struct foo template typename FooType struct bar static_assert is_instantiation_of FooType foo value..

Using a template alias instead of a template within a template

http://stackoverflow.com/questions/17392621/using-a-template-alias-instead-of-a-template-within-a-template

true_type template typename T struct foo template typename FooType struct bar static_assert is_instantiation_of foo FooType value.. FooType struct bar static_assert is_instantiation_of foo FooType value success int main int char bar foo int b success return.. template typename T using foo_alt foo T template typename FooType struct bar Changed want to use foo_alt instead of foo here static_assert..