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]

Re: throw(), pure and const flags on functions


Hi,
> I'd go so far as to suggest __GLIBCXX_PURE, but that's of course a call
> for the libstdc++ maintainers to make.  I'd try to use as small a chunk
> of the macro namespace as possible...  Do macros get expanded inside
> attributes?  If so, can we use "__attribute__ ((__pure__))" instead of
> "pure"?
>   
Mark, first thanks for your advice, two days ago, I'm trying to adhere
to it ;)

Indeed, I think the macro should use __pure__ in the C++ library. As for
the name, we are in fact consistently prepending _GLIBCXX_ (single
underscore at the beginning). Honza can find many examples in c++config.

Paolo.


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