Title
Inheriting constructors vs default arguments
Status
cd4
Section
_N4527_.12.9 [class.inhctor]
Submitter
Hubert Tong

Created on 2014-08-27.00:00:00 last changed 49 months ago

Messages

Date: 2015-10-15.00:00:00

[Adopted at the October, 2015 meeting as P0136R1.]

The creation of inheriting constructors does not, but should, consider the default arguments of constructors in the inheriting class. For example,

  struct A {
    A(int, int);
  };

  struct B : A {
    using A::A;
    B(int, int, int = 0); // does not suppress creation of B(int, int) from A(int, int)
  };
History
Date User Action Args
2017-02-06 00:00:00adminsetstatus: dr -> cd4
2015-11-10 00:00:00adminsetstatus: open -> dr
2014-08-27 00:00:00admincreate