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: C++ PATCH: PR 20599 (1/3)


Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> writes:

| 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

If you are going to mix N libraries, they are going to define their
own worlds irrespective of whether GCC has C++0x volatile extensions
or not.

| 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 ???

Given that they are volatile flags, yes, I would strongly recommand that
they are externally defined.

-- Gaby


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