This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Putting builtins in the std namespace


>     namespace _C_legacy {
>       extern "C" {
>         typedef unsigned int size_t;
>       }
>     } // namespace _C_legacy
>
>     namespace std {
>       using _C_legacy::size_t;
>     } // namespace std
>
>     void *operator new (std::size_t) throw (std::bad_alloc);
>
> That seems to work with the current G++.

Yes, I noticed. Thanks again. It looks like the rest of Theodore's patches for
libsupc++ can go in now.

> I'm afraid I just didn't get it.  Can you send me the exact program
> and command-line options you wish would compile, but doesn't?

I think I was wrong. In the non-shadowed header case, we should just introduce
size_t and ptrdiff_t into namespace std.

-benjamin


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