RFR: 8314488: Compiling the JDK with C++17
Andrew Haley
aph at openjdk.org
Sat Aug 16 09:10:17 UTC 2025
On Thu, 26 Jun 2025 02:01:55 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> I'm hijacking the PR mechanism as a way to discuss new C++17 features that can
> be more easily structured and captured than bare email. Once discussion
> settles down I'll turn the results into HotSpot Style Guide changes. I don't
> intend to integrate any version of this document to the OpenJDK repository.
doc/cpp17-features.md line 412:
> 410: [p0144r0](http://wg21.link/p0144r0)
> 411: [p0217r3](http://wg21.link/p0217r3)
> 412:
It might well be worth allowing limited used of Structured Bindings. The ability to return a status from an incomplete function is something we've lacked:
std::tuple<double, bool> incomplete_function(double x) {
if (x >= 0)
return std::tuple(sqrt(x), true);
return std::tuple(x, false);
}
const auto[root, failure] = incomplete_function(d);
if (failure) {...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25992#discussion_r2280326634
More information about the hotspot-dev
mailing list