|
Boost : |
From: Paul Hamilton (paul_at_[hidden])
Date: 2003-08-21 19:25:17
"Peter Dimov" <pdimov_at_[hidden]> wrote:
> This will work, although I had
>
> template<class Tr, class Ch> inline
> void empty_buf(BOOST_IO_STD basic_ostringstream<Ch,Tr> & os) {
> os.str( std::basic_string<Ch, Tr>() );
> }
>
> in mind as it is a smaller change.
This works just fine also:
*** feed_args.hpp.orig Thu Aug 21 22:45:28 2003
--- feed_args.hpp Fri Aug 22 10:19:55 2003
***************
*** 35,40 ****
template<class Tr, class Ch> inline
void empty_buf(BOOST_IO_STD basic_ostringstream<Ch,Tr> & os) {
! static const std::basic_string<Ch, Tr> emptyStr;
! os.str(emptyStr);
}
--- 35,39 ----
template<class Tr, class Ch> inline
void empty_buf(BOOST_IO_STD basic_ostringstream<Ch,Tr> & os) {
! os.str(std::basic_string<Ch, Tr>());
}
Paul.
---------------------
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul_at_[hidden]
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.
-----------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk