Boost logo

Boost :

From: Samuel Krempp (krempp_at_[hidden])
Date: 2004-01-29 02:18:43


On Wed, 2004-01-28 at 21:50, Pavel Vozenilek wrote:
> Borland C++ 6, patch 4, format_implementation.hpp:
>
> template< class Ch, class Tr>
> basic_format<Ch, Tr>& basic_format<Ch, Tr>:: operator= (const
> basic_format& x) {
> if(this == &x)
> return *this;
> (basic_format(x)).swap(*this); <<<=== here it fails
> return *this;
> }
>
> [C++ Error] format_implementation.hpp(93): E2102 Cannot use template
> 'basic_format<Ch,Tr>' without specifying specialization parameters

hmm, this wasnt reported in the regression test reports, are yours a
different BCB version ?

> Adding template parameters helped here:
>
> (basic_format<Ch, Tr>(x)).swap(*this);

I've commited that

-- 
Samuel

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