I'm trying to add something like this in my engine (since I HAVE TO REWRITE the WHOLE things AGAIN!!!! sorry, Just mad). Anyways, I thought I'd go with something like this:
bool createWindowImp(DemString winName, // window name
DemString winTitle, // window title
DemUInt winWidth, // window width.
DemUInt winHeight,
ExtraParameters params);
the ExtraParameters params is a typde def of a map<string, string> Now I tried to put a default value of 0 for params so it wouldn't need to be put unless otherwise used, but C++ didn't like that very much.... here's the error:
1>c:\users\rosario\documents\visual studio 2008\projects\dementedengine\dementedcore\demwindow.h(36) : error C2440: 'default argument' : cannot convert from 'int' to 'Demented::ExtraParameters'
1> No constructor could take the source type, or constructor overload resolution was ambiguous
I'm sure the answer is as easy as pi.....just wish I knew what to do......