Skip to content

Commit

Permalink
Fix docs to markdown formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tituswinters committed Jul 25, 2018
1 parent ded8f4a commit c39c46d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions d0684.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,19 @@ to support that, we choose to make "await" a keyword.
For example: In C++20 we decide to make the assignment + conditional ill-formed,
codifying the existing common warnings and instead relying on if+initializer
syntax from C++17. That is:

`if (int i = Foo())`

would become an error in favor of the new syntax:

`if (int i = Foo(); i)`

or without declaration:

`if (i = Foo())`

would require the existing solution:

`if ((i = Foo())`

- Detectable: We can clearly issue a warning for this (we have done so for
Expand All @@ -136,8 +143,10 @@ suppress that generation.
impacted by this change. (Obviously the compiler can statically determine if
the class declaration makes it eligible for the synthesis.)
- Opt-out: a type owner can opt-out in a backward-compatible manner by
adding something like:
bool operator< (const MyClass&) const = delete;
adding something like:

`bool operator< (const MyClass&) const = delete; `

This would not change the behavior of the type in the previous language
version, and relies only upon previous-version syntax.

Expand Down

0 comments on commit c39c46d

Please sign in to comment.