$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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