[C++-sig] operator in return false while operator == return true

2010-09-24 Thread Simon W
Hi, Im really scared because I fear a fundamental issue concerning the script system in my game engine. In C++, I have a class. In my class I map data to GameObject like: *class { map . }* As you see, I use the pointer as key. When I from c++, in the same class, call a python function

Re: [C++-sig] operator in return false while operator == return true

2010-09-24 Thread Stefan Seefeld
Simon, I don't quite understand what you are trying to do. Please provide a little more detail. Your current mail requires far too much second-guessing to be useful. On 09/24/2010 10:08 AM, Simon W wrote: Hi, Im really scared because I fear a fundamental issue concerning the script system

Re: [C++-sig] operator in return false while operator == return true

2010-09-24 Thread Simon W
Hey, sorry for the lacking information. May I declare it as this instead: C++ Class class GameObjectManager { map a_map; // this map has "nothing" to do with python dict GameObject* createGameObject(id) { Gameobject* obj = new Gameobject(id); a_map[ obj ] = ...some data...

Re: [C++-sig] operator in return false while operator == return true

2010-09-24 Thread Jim Bosch
On 09/24/2010 02:42 PM, Simon W wrote: Hey, sorry for the lacking information. May I declare it as this instead: C++ Class class GameObjectManager { map a_map; // this map has "nothing" to do with python dict GameObject* createGameObject(id) { Gameobject* obj = new Gameobjec