Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-22 10:32:29


OK let's CC Samuel Krempp to make sure he's seen it.

Paul Hamilton wrote:
> "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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk