Home

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?

previous
next

Re: sum of two integers
.dll in VC++ 6
Re: What is the fastest way to do Data File I/O in C++
Re: Passing a tuple to a function as multiple arguments
Re: permutations and combinations
Niechciane i Zapomniane
Kidprotect
Pajacyk
Fundacja Hobbit
Rodzic Po Ludzku