RFR: JDK-8299386: Refactor metaprogramming to use <type_traits>

Axel Boldt-Christmas aboldtch at openjdk.org
Mon Jan 2 09:17:48 UTC 2023


On Wed, 28 Dec 2022 06:00:59 GMT, Justin King <jcking at openjdk.org> wrote:

> Cleanup `metaprogramming/` to just use implementations from `<type_traits>` that are available in C++11 and onward.

Just a general question with regards too our style guide. What is the goal/idea behind this line? https://github.com/openjdk/jdk/blame/2ee34f14880cccca02e2933f80b000979f33c6d1/doc/hotspot-style.md#L578
> TODO: Rather than directly #including (permitted) Standard Library headers, use a convention of #including wrapper headers (in some location like hotspot/shared/stdcpp). This provides a single place for dealing with issues we might have for any given header, esp. platform-specific issues.

And is it relevant for any/all of these <type_trait> / metaprogramming changes?

-------------

PR: https://git.openjdk.org/jdk/pull/11794


More information about the hotspot-dev mailing list