About Store Forum Documentation Contact



Post Reply 
[CLOSED] CodeEditor - EE::Map [EE SDK 10.01.2012]
Author Message
BlackHornet Offline
Member

Post: #1
[CLOSED] CodeEditor - EE::Map [EE SDK 10.01.2012]
FOllowing class creates an error when initalising a Map...same code worked a few month ago:

Code:
class BaseInput
{
   static Bool MapABCreate(Str &data, Str &key, Ptr user)
   {
      return true;
   }

   static Int MapABCompare(Str &a, Str &b)
   {
      return Compare(a, b);
   }

   // Manage
   BaseInput();  

   Map<Str,Str> actionBinding(BaseInput::MapABCreate, BaseInput::MapABCompare, NULL);
  
};

BaseInput.BaseInput()
{
}

sorry for german output:
Code:
1>c:\development\eeprojects\tartarus\trunk\_c++ build_\tartarus\source\external\baseinput.cpp(11): error C2664: 'EE::Map<KEY,DATA>::Map(Bool (__cdecl &)(DATA &,KEY &,Ptr),Int (__cdecl &)(const KEY &,const KEY &),Ptr,Int)': Konvertierung des Parameters 2 von 'Int (__cdecl *)(EE::Str &,EE::Str &)' in 'Int (__cdecl &)(const KEY &,const KEY &)' nicht möglich
1>          with
1>          [
1>              KEY=EE::Str,
1>              DATA=EE::Str
1>          ]
1>          and
1>          [
1>              KEY=EE::Str
1>          ]
1>          Keine Funktion mit diesem Namen im Gültigkeitsbereich stimmt mit dem Zieltyp überein
[/code]

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
(This post was last modified: 01-11-2012 01:30 AM by BlackHornet.)
01-10-2012 12:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: CodeEditor - EE::Map [EE SDK 10.01.2012] CompileError
This is not related to Code Editor, but to a change in Map's custom Compare functions from back in September (first change).
01-10-2012 10:04 PM
Find all posts by this user Quote this message in a reply
BlackHornet Offline
Member

Post: #3
RE: CodeEditor - EE::Map [EE SDK 10.01.2012] CompileError
oh damn, thanks....i must have overseen that little C in the tutorial files -.-

*closed*

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
01-11-2012 01:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply