From Jason Turner

[depr.arith.conv.enum]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpt8dljvua/{from.md → to.md} +0 -22
tmp/tmpt8dljvua/{from.md → to.md} RENAMED
@@ -1,22 +0,0 @@
1
- ## Arithmetic conversion on enumerations <a id="depr.arith.conv.enum">[[depr.arith.conv.enum]]</a>
2
-
3
- The ability to apply the usual arithmetic conversions
4
- [[expr.arith.conv]] on operands where one is of enumeration type and the
5
- other is of a different enumeration type or a floating-point type is
6
- deprecated.
7
-
8
- [*Note 1*: Three-way comparisons [[expr.spaceship]] between such
9
- operands are ill-formed. — *end note*]
10
-
11
- [*Example 1*:
12
-
13
- ``` cpp
14
- enum E1 { e };
15
- enum E2 { f };
16
- bool b = e <= 3.7; // deprecated
17
- int k = f - e; // deprecated
18
- auto cmp = e <=> f; // error
19
- ```
20
-
21
- — *end example*]
22
-