Question/problem related to _Bool in type_traits.h
Gabriel Dos Reis
gdr@codesourcery.com
Tue Oct 16 07:06:00 GMT 2001
"Stephen M. Webb" <stephen@bregmasoft.com> writes:
| On Tue, 16 Oct 2001, Carlo Wood wrote:
| > Why not removing the '#define _Bool bool' from 3.0's stdbool.h?
| > I don't think people should use _Bool in user applications when
| > compiling C++ programs with 3.x? They should use 'bool' that is
| > the whole point of stdbool.h, so you can use 'bool' regardless.
|
| The C++ standard library should not be introducing names into the global
| namespace. I would consider that an implementation flaw.
>From Standard C++ point of view, _Bool is in the implementation
namespace.
| I think moving the type_traits names, all of them, into __gcc_cxx:: is worth
| doing regardless.
Agreed.
-- Gaby
More information about the Libstdc++
mailing list