On 12/02/11 19:52, Tomalak Geret'kal wrote:
>> According to the standard, yes. But not according to reality: many
>> compilers, g++ included, do not control the C library headers so
>> <stddef.h> does not declare names in namespace std.
>
> namespace std {
> #incude <stddef.h>
> }
This introduces a big issue if you try to use <cstddef> and
<stddef.h> because of the headers safeguards. size_t should not be
longer available in global namespace when including the legacy header.
Have a look at the actual content of cstddef file :)
--
Mickaël Wolff aka Lupus Michaelis
Racine <http://lupusmic.org>
Blog <http://blog.lupusmic.org>