$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-05-10 03:23:39
----- Original Message -----
From: "Gennadiy Rozental" <rogeeff_at_[hidden]>
> "David Abrahams" <david.abrahams_at_[hidden]> wrote in message
> news:061b01c1f7cf$080dfd30
>
> > Why?
>
> Because following causing compoilation error:
> A<B> ab;
> A<C> ac;
>
> ac = ab;
>
> In other words ab is NOT convertible to ac.
You're testing assignability, which is a different question. Try:
void f(A<B>);
int main()
{
f(A<C>());
}
-Dave