Boost logo

Boost Users :

Subject: Re: [Boost-users] How to assign a preallocated buffer boost::format?
From: Jeff Flinn (Jeffrey.Flinn_at_[hidden])
Date: 2012-03-02 08:07:52


niXman wrote:
> Hello,
>
> I need to assign a preallocated buffer for the boost::format.
> Any ideas?
>
> Thanks.

If you mean you want to construct a boost::format object in a
preallocated buffer, use placement new. If you mean you want stream out
to a preallocated buffer, adapt the buffer with
boost::iostreams::array_sink and stream to it in the usual way.

Jeff


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