[cfe-dev] Suggestion for C++ migration tool: tr1 removal

Jeffrey Walton noloader at gmail.com
Sun Mar 3 10:27:08 PST 2013


On Sun, Mar 3, 2013 at 1:13 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> Minor nit-pick:
>
>> #if defined(OS_APPLE) || defined(CXX_CLANG)
> This should check the standard library type / version, not a compiler.
If it worked reliably, I would. Clang and __GNUC__ is a perfect
example. Confer: http://www.google.com/search?q=clang+__GNUC__+bug.

I find it easier to pick up OS'es and Compilers (including versions as
required), and work around their personalities. Using OS/Compilers,
I've got code that cross compiles cleanly on Windows, Mac OS, and
Linux using Clang, Comeau, ICC/ICPC, VC++. And the programs are
correct.

Jeff



More information about the cfe-dev mailing list