From Jason Turner

[diff.cpp14.expr]

Diff to HTML by rtfpessoa

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