Heads up, just like what Jonathan Wakely mentioned, C++17 has since changed this behavior. Now the default arguments in the parameter list DOES get inherited.
That is to say, if we had the following constructor in a class called Base,
struct Base {
Base(int a, int b, int c = 1, int d = 2, int e = 3) {}
};
then for that constructor above, these are corresponding ones that are 'injected' into the derived class in C++11/C++14:
struct Derived : Base {
using Base::Base;
/*
C++11/C++14:
Derived::Derived(int a, int b) : Base(a, b) {}
Derived::Derived(int a, int b, int c) : Base(a, b, c) {}
Derived::Derived(int a, int b, int c, int d) : Base(a, b, c, d) {}
Derived::Derived(int a, int b, int c, int d, int e) : Base(a, b, c, d, e) {}
*/
};
while the one in C++17 is now much simpler:
struct Derived : Base {
using Base::Base;
/*
C++17:
Derived::Derived(int a, int b, int c = 1, int d = 2, int e = 3) : Base(a, b, c, d, e) {}
*/
};
Why I think this is:
Based on the cppreference.com page on inheriting constructors and the paper that introduced the changes (P0136R1), the entire [class.inhctor]\1 subsection which specified how the inherited constructors are split up and 'injected' into the derived class was removed. (In fact the whole [class.inhctor] section was removed). It was then replaced with a simple rule in [namespace.udecl]\16 in C++17 which says (emphasis mine):
For the purpose of overload resolution, the functions that are introduced by a using-declaration into a derived
class are treated as though they were members of the derived class. In particular, the implicit this parameter
shall be treated as if it were a pointer to the derived class rather than to the base class. This has no effect on
the type of the function, and in all other respects the function remains a member of the base class. Likewise,
constructors that are introduced by a using-declaration are treated as though they were constructors of the
derived class when looking up the constructors of the derived class (6.4.3.1) or forming a set of overload
candidates (16.3.1.3, 16.3.1.4, 16.3.1.7). If such a constructor is selected to perform the initialization of
an object of class type, all subobjects other than the base class from which the constructor originated are
implicitly initialized (15.6.3).
So the parameter list now 'carries over' completely. Indeed this is my experience using the P0136R1-compliant CLion with GCC 7.2, while my non P0136R1-compliant Visual Studio 2017 (15.6) showed the older 4 constructors with the default arguments dropped.