C++ PATCH: PR 20599 (1/3)

Theodore Papadopoulo Theodore.Papadopoulo@sophia.inria.fr
Mon Sep 25 13:48:00 GMT 2006


On Mon, 2006-09-25 at 15:35 +0200, Gabriel Dos Reis wrote:
> Howard Hinnant <hhinnant@apple.com> writes:

> No.  The *library author* defines the macros that guard its uses of
> the specific GCC extensions.  He/she does not need to provide two
> separate implementations.  

So if you use N libraries that use a feature, you end up doing:

--std=C++-0X -DMOVE_SEMANTICS_1 -DMOVE_SEMANTICS_2 -DMOVE_SEMANTICS3

Would you argue that it is not better to systematically have one define
done directly in the compiler, which will at least synchronize all
libraries ???




More information about the Libstdc++ mailing list