$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Daniel Frey (d.frey_at_[hidden])
Date: 2004-03-11 17:42:04
Bronek Kozicki wrote:
> Daniel Frey <daniel.frey_at_[hidden]> wrote:
>
>>template <typename U>
>>void f (const B<U>&)
>>{
>> U<double> v;
>> v.g();
>>}
>
>
> There's an error:
Obviously, as that was on purpose.
> I think that instead should be:
>
> template <template <typename> class U>
> void f (const B<U>&)
> {
> U<double> v;
> v.g();
> }
>
> after this small change it compiles fine, and result is:
> double
Hm. Well, this means that the VC seems to accept the correct code in
*some* cases, but not always? I'm puzzled and I don't know how to help
you to find the problem. Can you try to reduce the _m3 to a small
example which still shows some of the problems you reported? TIA.
Regards, Daniel