On Sep 2, 3:28 am, Ian Collins <ian-n...@hotmail.com> wrote:
> Sepidar wrote:
> > hi all,
> > I'm trying to write a custom allocator for myself, using with
> > std::jvector. But it seems that I have no response from it. See the
> > code:
>
> <snip code>
>
>
>
> > It is expected that the code return at least message from
> > MyAllocator's constructor, but there is nothing showing that. Please
> > help.
>
> Looks OK to me, so I tried gcc and Sun CC, both gave
>
> message from MyAllocator::MyAllocator
> a new instance of MyClass created!
> message from MyAllocator::deallocate
>
> You're not using some dodgy old compiler like VC6 are you?
>
> --
> Ian Collins.
I'm using gcc 4.1.2...
Have you ever noticed that even your results are different from Bo?