Original Post
Hi, I am trying to load properties from a config file into a map. What I want to do is have different properties for my application. The thing I don't know how to do is have a template datatype for the value. For example the title of the window is a string and the width and height is a number. I don't want a type casting nightmare. I declare my map as of now like this: std::map properties; Then I just load in the key-value pair from the text file in this format: Title Tetris Width 800 Height 600 etc. Could I do something like this: std::map properties; Is this possible with templates? Or do I need to figure out some other idea?