toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN slice<0,End<-1>> problem in MSVC++


From: Gerhard Reitmayr
Subject: [Toon-members] TooN slice<0,End<-1>> problem in MSVC++
Date: Sat, 31 Oct 2009 00:22:19 +0100

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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]