tmp/tmp53t4wnrj/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
| 1 |
### [[expr]]: expressions <a id="diff.cpp14.expr">[[diff.cpp14.expr]]</a>
|
| 2 |
|
| 3 |
**Change:** Remove increment operator with `bool` operand.
|
| 4 |
**Rationale:** Obsolete feature with occasionally surprising semantics.
|
| 5 |
**Effect on original feature:** A valid C++14 expression utilizing the
|
| 6 |
-
increment operator on a `bool` lvalue is ill-formed in this
|
| 7 |
-
|
| 8 |
-
type given by a template parameter.
|
| 9 |
|
| 10 |
**Change:** Dynamic allocation mechanism for over-aligned types.
|
| 11 |
**Rationale:** Simplify use of over-aligned types. **Effect on original
|
| 12 |
feature:** In C++14 code that uses a *new-expression* to allocate an
|
| 13 |
object with an over-aligned class type, where that class has no
|
| 14 |
allocation functions of its own, `::operator new(std::size_t)` is used
|
| 15 |
-
to allocate the memory. In this
|
| 16 |
`::operator new(std::size_t, std::align_val_t)` is used instead.
|
| 17 |
|
|
|
|
| 1 |
### [[expr]]: expressions <a id="diff.cpp14.expr">[[diff.cpp14.expr]]</a>
|
| 2 |
|
| 3 |
**Change:** Remove increment operator with `bool` operand.
|
| 4 |
**Rationale:** Obsolete feature with occasionally surprising semantics.
|
| 5 |
**Effect on original feature:** A valid C++14 expression utilizing the
|
| 6 |
+
increment operator on a `bool` lvalue is ill-formed in this revision of
|
| 7 |
+
C++.
|
|
|
|
| 8 |
|
| 9 |
**Change:** Dynamic allocation mechanism for over-aligned types.
|
| 10 |
**Rationale:** Simplify use of over-aligned types. **Effect on original
|
| 11 |
feature:** In C++14 code that uses a *new-expression* to allocate an
|
| 12 |
object with an over-aligned class type, where that class has no
|
| 13 |
allocation functions of its own, `::operator new(std::size_t)` is used
|
| 14 |
+
to allocate the memory. In this revision of C++,
|
| 15 |
`::operator new(std::size_t, std::align_val_t)` is used instead.
|
| 16 |
|