Reserved identifiers used for include guards

8 Jul
2025
8 Jul
'25
2:23 a.m.
Hi, I found that many include guard macros in Boost contain "__HPP" (note the double underscore). It would be nice to reduce those underscores to one, because identifiers containing two consecutive underscores "are reserved to the implementation for any use" (C++ standard, [lex.name]). -- Gennaro Prota <https://prota.dev>

8 Jul
8 Jul
4:04 a.m.
On 8 Jul 2025 11:23, Gennaro Prota via Boost wrote:
Hi,
I found that many include guard macros in Boost contain "__HPP" (note the double underscore). It would be nice to reduce those underscores to one, because identifiers containing two consecutive underscores "are reserved to the implementation for any use" (C++ standard, [lex.name]).
I think, this is best done with PRs to the respective libraries.
5
Age (days ago)
5
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrey Semashev
-
Gennaro Prota