This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Should _GLIBCXX_CONSTEXPR, _GLIBCXX14_CONSTEXPR etc. expand to 'inline' ?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]