RFR: 8369186: HotSpot Style Guide should permit some uses of the C++ Standard Library
Kim Barrett
kbarrett at openjdk.org
Thu Oct 9 03:37:05 UTC 2025
On Wed, 8 Oct 2025 18:52:20 GMT, John R Rose <jrose at openjdk.org> wrote:
> Are we 100% sure ...
Yes.
> Should I worry ...
No.
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2340r0.html
Clarifying the status of the "C headers"
On the basis of that paper, C++23 undeprecated the C headers (they'd been
deprecated since C++98) and gave them their own section in the main body of
the standard, rather than being relegated to an appendix.
The guidance is that a C++ source file should only include C headers if the
file also needs to be valid C source. I'm planning to nudge us in that
direction, except by using our own wrapper headers, like cppstdlib/cstddef.hpp.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27601#discussion_r2415481626
More information about the hotspot-dev
mailing list