RFR: 8252582: HotSpot Style Guide should permit variable templates
David Holmes
dholmes at openjdk.org
Fri Sep 12 02:04:14 UTC 2025
On Fri, 12 Sep 2025 01:13:25 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change to the HotSpot Style Guide to permit the use of
> variable templates. This is a C++14 feature that, while fairly simple, didn't
> get into the initial permitted for HotSpot list because I just didn't get to
> it and nobody asked for it. And it has languished on the "undecided" list for
> the same reasons. But recently I've had reason to want to use this feature a
> couple of times, so I'm now proposing we allow it.
>
> I merged it into the section for Inline Variables (a C++17 feature), as the
> two are closely related. Variable templates were even listed as one of the
> workarounds being used to make up for the lack of inline variables.
Marked as reviewed by dholmes (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/27240#pullrequestreview-3214349356
More information about the build-dev
mailing list