Boost logo

Boost :

From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-03-03 07:50:11

Jonathan Turkanis wrote:

> "Jeff Garland" <jeff_at_[hidden]> wrote in message
>> On Tue, 2 Mar 2004 12:38:41 -0700, Jonathan Turkanis wrote
>> >
>> > One type of streambuf I chose not to support, because I didn't
> think
>> > it would be used much, was a streambuf whose underlying sequence
> of
>> > characters is presented as a fixed in-memory array. (Daryle Walker
>> > provdies one in his i/o library.) The application with memory
> mapped
>> > files seems important enough that I think I should add such a
>> > facility, which would be easy to do. I'm trying to decide the most
>> > elegant way.
>> I think it would be an excellent testcase for your library. In case
> you
>> missed it earlier in the thread there is already a library from
> Craig
>> Henderson in the boost-sandbox (memmap) that portably allocates
> memory mapped
>> files. You should be able to build on top of that work....
> Thanks, this looks like a good idea. I'll just have to write some
> connective tissue to integrate Craig's work into my framework.

On a slightly different thought: if you use a special allocator with a
container, such as vector, that is mmap-based, then serialization would be
trivial. I wonder if we can use this?

Boost list run by bdawes at, gregod at, cpdaniel at, john at