[RFC] Should _GLIBCXX_CONSTEXPR, _GLIBCXX14_CONSTEXPR etc. expand to 'inline' ?
Jonathan Wakely
jwakely@redhat.com
Fri Sep 27 12:02:00 GMT 2019
Currently we have lots of code that has:
inline _GLIBCXX14_CONSTEXPR void
foo()
When the macro expands to 'constexpr' the 'inline' is redundant,
because constexpr implies inline.
For older standards we could make it expand to 'inline' instead of
'constexpr' and then we don't need the sometimes-redundant 'inline'
there.
This would be a change if we have some functions that are *not*
declared 'inline' for older standards, but become inline when they're
constexpr functions. I'm not aware of any cases like that.
More information about the Libstdc++
mailing list