Hi guys,
There is a problem with the nice new End<X> notation and MSVC++
(yeah latest version).
basically, it accepts the construct and swallows the
slice<X, End<Y> >()
but does not resolve the original one
slice<X,Y>()
anymore. It tries to match it against the first one and fails (no
casting of int to End<Y>).
Basically, the following simple test case fails:
template <int A, int B> int f() { return A; }
template <int X> struct S {};
template <int X> S<X> End();
template <int A, S<2> (*End)() > int f() { return 2; }
void bla(){
f<1,2>(); // this one doesn't work
f<1, End<2> >();
}
not sure what to do about this one?
cheers,
Gerhard
--
Gerhard Reitmayr
MIL, Engineering Department, Cambridge University
http://mi.eng.cam.ac.uk/~gr281/
_______________________________________________
Toon-members mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/toon-members