https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124428
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
What about generating a lot of headers?
One for the __glibcxx_* macros only, included always in bits/c++config.h, and
then
one for each public header that should define some of the __cpp_lib_* defines
(with version.def listing those headers (perhaps <version> being added always
automatically).
And each public header that needs it would then just include
<bits/NAME_version.h>
which would only contain the subset that is needed for the particular header.
And perhaps using __glibcxx_* macros defined earlier in <bits/c++config.h>
included header so that all the conditions wouldn't need to be repeated.