Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-05-10 03:55:13


"David Abrahams" <david.abrahams_at_[hidden]> wrote in message
news:067001c1f7fc$302f73c0$8f01a8c0_at_boostconsulting.com...

> You're testing assignability, which is a different question. Try:
>
> void f(A<B>);
> int main()
> {
> f(A<C>());
> }
>
> -Dave

MSVC responce:
error C2664: '__thiscall B::B(const struct B &)' : cannot convert parameter
1 from 'const struct A<struct C>' to 'const struct B &'
        Reason: cannot convert from 'const struct A<struct C>' to 'const
struct B'
        No constructor could take the source type, or constructor overload
resolution was ambiguous
see reference to function template instantiation '__thiscall A<struct
B>::A<struct B>(const struct A<struct C> &)' being compiled


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