patch for ext/debug_allocator.h (second attempt)

Benjamin Kosnik bkoz@redhat.com
Tue Feb 3 19:46:00 GMT 2004


>This patch makes the debug_allocator<> compile now. 

testsuite/ext/allocators.cc seemed to work before, but I agree, something's fishy...

> Earlier, the debug_allocator<> had code like this:
>
>size_type n;
>pointer x;
>*x = n;
>
>Which made no sense.

Right.

However, we're trying to stay away from static data members, and ugly
casting. Try this.

-benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.20040203-dhruv.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040203/c54183bd/attachment.ksh>


More information about the Libstdc++ mailing list