Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-01-28 15:50:50


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


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