Boost logo

Boost Users :

Subject: Re: [Boost-users] Memory manager/allocator
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2009-06-16 12:21:02


Igor R ha scritto:
> I've take a look to boost::pool, tell me if I understand well.
>
>
> Unfortunately, I never used it myself, so I'm afraid I can't enlighten
> you more than the library reference.

Ok, no worries. I'll simply try!

> void MyMemoryObj::Write(long pData, long byte_to_write)
> {
> // In windows I write the data pointed to pData into the buffer with:
> RtlMoveMemory pMem, pData, byte_to_write
> }
>
> Is there a way to copy memory in boost?
>
>
> Why boost? It's just std::copy()
> Or if you insist on working with plain C pointers, instead of c++
> iterators, then use plain C memcpy()

Ehehe...My 'STL use' is a little bit rusty and sometimes I forgot that I
have a simply solution in the hand!

Thanks Igor!
Daniele.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net