
11 Mar
2004
11 Mar
'04
10:42 p.m.
Bronek Kozicki wrote:
Daniel Frey <daniel.frey@aixigo.de> 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