[C++-sig] Re: Making buffer objects using Boost

David Abrahams dave at boost-consulting.com
Wed Jul 14 21:15:11 CEST 2004


Itamar Shtull-Trauring <itamar at itamarst.org> writes:

> Hi,
>
> I'd like to create a Python type with Boost that acts like a buffer
> object (http://www.python.org/doc/current/api/buffer-structs.html). The
> reason I'm not just using strings or arrays is that I want to allow
> custom deallocation strategies for the char* that is being wrapped  (I'm
> working on Twisted C++ integration - network protocols that will be
> calling something like Transport::write(Deallocator d, char* buf, size_t
> buflen).)
>
> Does Boost have the hooks for this?

Not yet, sorry.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list