From Jason Turner

[diff.cpp11.expr]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmphkf_6705/{from.md → to.md} +10 -10
tmp/tmphkf_6705/{from.md → to.md} RENAMED
@@ -1,16 +1,16 @@
1
- ### Clause [[expr]]: expressions <a id="diff.cpp11.expr">[[diff.cpp11.expr]]</a>
2
 
3
- [[expr.cond]] **Change:** A conditional expression with a throw
4
- expression as its second or third operand keeps the type and value
5
- category of the other operand. **Rationale:** Formerly mandated
6
- conversions (lvalue-to-rvalue ([[conv.lval]]), array-to-pointer (
7
- [[conv.array]]), and function-to-pointer ([[conv.func]]) standard
8
- conversions), especially the creation of the temporary due to
9
- lvalue-to-rvalue conversion, were considered gratuitous and surprising.
10
- **Effect on original feature:** Valid C++11code that relies on the
11
- conversions may behave differently in this International Standard:
12
 
13
  ``` cpp
14
  struct S {
15
  int x = 1;
16
  void mf() { x = 2; }
 
1
+ ### [[expr]]: expressions <a id="diff.cpp11.expr">[[diff.cpp11.expr]]</a>
2
 
3
+ **Change:** A conditional expression with a throw expression as its
4
+ second or third operand keeps the type and value category of the other
5
+ operand. **Rationale:** Formerly mandated conversions (lvalue-to-rvalue
6
+ [[conv.lval]], array-to-pointer [[conv.array]], and function-to-pointer
7
+ [[conv.func]] standard conversions), especially the creation of the
8
+ temporary due to lvalue-to-rvalue conversion, were considered gratuitous
9
+ and surprising. **Effect on original feature:** Valid C++11 code that
10
+ relies on the conversions may behave differently in this International
11
+ Standard:
12
 
13
  ``` cpp
14
  struct S {
15
  int x = 1;
16
  void mf() { x = 2; }