tmp/tmpzkgk_bm_/{from.md → to.md}
RENAMED
|
@@ -5,11 +5,11 @@ into the derived class. **Rationale:** Better interaction with other
|
|
| 5 |
language features. **Effect on original feature:** Valid C++14 code that
|
| 6 |
uses inheriting constructors may not be valid or may have different
|
| 7 |
semantics. A *using-declaration* that names a constructor now makes the
|
| 8 |
corresponding base class constructors visible to initializations of the
|
| 9 |
derived class rather than declaring additional derived class
|
| 10 |
-
constructors.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
struct A {
|
| 14 |
template<typename T> A(T, typename T::type = 0);
|
| 15 |
A(int);
|
|
|
|
| 5 |
language features. **Effect on original feature:** Valid C++14 code that
|
| 6 |
uses inheriting constructors may not be valid or may have different
|
| 7 |
semantics. A *using-declaration* that names a constructor now makes the
|
| 8 |
corresponding base class constructors visible to initializations of the
|
| 9 |
derived class rather than declaring additional derived class
|
| 10 |
+
constructors. For example:
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
struct A {
|
| 14 |
template<typename T> A(T, typename T::type = 0);
|
| 15 |
A(int);
|