
2 Mar
2012
2 Mar
'12
1:07 p.m.
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