Questions tagged [template-aliases]

67 questions
50
votes
2 answers

Pack expansion for alias template

It seems that a pack argument can be expanded only in the place of a pack parameter of an alias template. This is not true for a class or a function template: template struct x { using type = T; }; template
bolov
  • 72,283
  • 15
  • 145
  • 224
41
votes
1 answer

Why does alias template give a conflicting declaration?

The port of some C++11 code from Clang to g++ template using value_t = typename T::value_type; template struct S { using value_type = int; static value_type const C = 0; }; template value_t> // gcc error,…
TemplateRex
  • 69,038
  • 19
  • 164
  • 304
39
votes
2 answers

Can I use template aliases as template template parameters?

Can I use template aliases as template template parameters? template