How to assign a preallocated buffer boost::format?

2 Mar
2012
2 Mar
'12
8:49 a.m.
Hello, I need to assign a preallocated buffer for the boost::format. Any ideas? Thanks. -- Regards, niXman

2 Mar
2 Mar
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
4795
Age (days ago)
4795
Last active (days ago)
1 comments
2 participants
participants (2)
-
Jeff Flinn
-
niXman