0

I want to declare a typedef for a parameter in a dependent scope of a nested template in C++. I tried below.

template<typename T1, template<typename, typename...> typename T2, typename T3>
struct Test {
  using valueT = std::vector<T2>::value_type;
};

But my program gives a compile error template argument 1 is invalid at typedef line

shaaa
  • 473
  • 1
  • 4
  • 15

0 Answers0