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: [RFC] std::string(0);


Nathan Myers <ncm-nospam@cantrip.org> writes:

> The overloading trick would work, but you would need access to a 
> macro defined if "-pedantic" (unless there was some hackishly 
> exploitable semantic difference between pedantic and regular modes;
> in the old days, it would be worth checking, but not any more).
> Of course there is no such macro.

But it would be trivial to add one.

We already have, e.g., __DEPRECATED to indicate whether -Wdeprecated
is in effect.

Ian


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