Original Post
Hi... I am implementing a SettingsManager, based on the Enginuity engine. But I have (obviously) a problem. (Im not going to use settings with multiple values.) The "BaseSetting" (dator) class, is not a template so that there is no need to choose a specific variable type when creating a Settingsmap or list. It only includes some virtual functions for operator overloading and such. The derived class "Setting" has all those things to calculate from variable to string (for lets say, priting them on screen in text form) and vice versa. Just like Enginuity. This works fine one way... I can create different settings and put them in my SettingsManagers map, i can also return them as strings for viewing and give them new values. But i cant use my Settings directly in places where they are needed, like "video_width" should be used when creating the D3D COM object. That create function calls for an int. But i cant just put my SettingsManager (its a singleton by the way) map settingslist directly there cause it cant return as an int (because the main BaseSetting (dator) class dosen't know the variabletype, i cant create virtual functions for returning it. I dont know if I missed something obvious here (I'm quite new att the programming thing). But if anyone knows a sollution, please help me :) Oh and by the way, when you overload the '=' operator on class "whatever". Does it imply both on whatever = somethingelse and somethingelse = whatever ? And sorry if there are any spelling errors, my english is not the best. \\Xeta