Почему мне нужно указывать полные параметры шаблона, чтобы использовать родительский конструктор, когда я получаю производный от псевдонима using, а не когда я наследуюсь от класса?
template
class A {};
template
using B = A;
class DerivedA: public A
{
using A::A; // this does work
};
class DerivedB: public B
{
using B::B; // this does not work "Use of alias template 'B' requires template arguments"
// using B::B; // this would work:
};
Подробнее здесь: https://stackoverflow.com/questions/798 ... s-vs-class
Мобильная версия