toon-members
[Top][All Lists]
Advanced

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

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


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

ok, I have a short term solution :)

End is only used in project/unproject functions in TooN. so I rewrote them to use the general slice functions and put ifdefs around the slices members with End markers to not be used under Win32...

I will check that in, if that is acceptable for now.

cheers,
  Gerhard


On 31 Oct 2009, at 00:22, Gerhard Reitmayr wrote:

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

--
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]