Skip to content

Commit

Permalink
Add link to explicit discard design note
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Aug 17, 2024
1 parent 53b158d commit 0cc18e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/cpp2/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ main: ()
>
> - A function call written in Cpp2 `x.f()` member call syntax always treats a non-`#!cpp void` return type as not discardable, even if the function was written in Cpp1 syntax that did not write `[[nodiscard]]`.
For details and rationale, see [Design note: Explicit discard](https://github.com/hsutter/cppfront/wiki/Design-note%3A-Explicit-discard).


### <a id = "function-types"></a> Using function types

Expand Down

0 comments on commit 0cc18e5

Please sign in to comment.