[1.31 RC2, format] BCB problem

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 Adding template parameters helped here: (basic_format<Ch, Tr>(x)).swap(*this); /Pavel

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
participants (3)
-
Pavel Vozenilek
-
Russell Hind
-
Samuel Krempp