class A
{
A(int a);
};
class B : public A
{
using A::A;
};
int main()
{
B b(3);
return 0;
}
Is there a way to accomplish what the above program is looking for (so that B has a constructor with the same parameter as the base class)? Is this the correct syntax?
If so, is this a C ++ 11/14 function, or can it be done in C ++ 03?
Bwmat source
share