/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

jacobtomlinson.dev
| | semver.org

Semantic Versioning spec and website
2.6 parsecs

Travel
| |
| | tom.preston-werner.com


2.4 parsecs

Travel
| |
| | kidger.site

Personal website. Math, SciML, scuba diving!
3.2 parsecs

Travel
| |
| | www.sandordargo.com

In short, thanks to P2748R5 by Brian Bi, it's no longer possible to return a reference that binds to a temporary expression, and that's just lovely. What exactly is changing? Often, a proposal modifies a lot of wording, and it's not practical to start by reading through it all. But in this case, the changes are small and easy to digest, so let's dive in. This line is being removed: "The lifetime of a temporary bound to the returned value in a function return statement (8.7.4) is not extended; the temporary is destroyed at the end of the full-expression in the return statement." And this line is being added (excluding the examples we'll discuss in a moment): "In a function whose return type is a reference, other than an invented function for std::is_convertib...
47.8 parsecs

Travel
|