[RFC] std::string(0);

Ian Lance Taylor ian@wasabisystems.com
Sat Jun 12 01:24:00 GMT 2004


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



More information about the Libstdc++ mailing list