pingus-devel
[Top][All Lists]
Advanced

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

Re: BUG #1589: The whole concept of forces/move_with_forces/forces_holde


From: Neil Mitchell
Subject: Re: BUG #1589: The whole concept of forces/move_with_forces/forces_holder > needs to be rethought
Date: Tue, 5 Nov 2002 00:50:30 -0000

"Something collided"
Absolutely no problem, MSVC 6 with SP 5 (although I doubt that makes a
difference)

Ginge

----- Original Message -----
From: "Ingo Ruhnke" <address@hidden>
To: <address@hidden>
Sent: Monday, November 04, 2002 10:21 PM
Subject: Re: BUG #1589: The whole concept of
forces/move_with_forces/forces_holder > needs to be rethought


> "Neil Mitchell" <address@hidden> writes:
>
> > > This would result in the use of member templates, could somebody
> > > confirm that MSVC6 supports them? As far as I know its only there STL
> > > which is build without them.
> > Send me code, I'll see if it works.
>
> Here it goes:
>
> #include <iostream>
>
> class Pingu
> {
> public:
>   template<class T>
>   void check_collision(const T& col)
>   {
>     if (col(6, 5))
>       std::cout << "Something collided" << std::endl;
>     else
>       std::cout << "Nothing collided" << std::endl;
>   }
> };
>
> struct Coll
> {
>   bool operator() (int a, int b) const {
>     return a > b;
>   }
> };
>
> int main()
> {
>   Pingu a;
>   a.check_collision(Coll());
> }
>
> // EOF //
>
> --
> WWW:      http://pingus.seul.org/~grumbel/
> Games:    http://pingus.seul.org/~grumbel/gamedesigns/
> JabberID: address@hidden
> ICQ:      59461927
>
>
> _______________________________________________
> Pingus-Devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/pingus-devel
>




reply via email to

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