class A
{
A(int a);
};
class B : public A
{
using A::A; // Shorthand for B(int b) : A(b) {}?
};
int main()
{
B b(3);
return 0;
}
Is there some way to accomplish what the above program seeks to (to make B have a constructor with the same parameter's as a base class')? Is that the correct syntax for it?
If so, is it a C++11/14 feature, or can it be done in C++03?