I made this program where you have some kind of Data, which type is choosen by the user. User save his work, and in the xml save file i want to write what type of variable he used, so when i have to open saves my program allocates the right template of Data example:
C++:
template <class T>
class Data{
private:
T variable;
...
};
XML:
<header>
<type>int</type>
</header>
so here when i load the save file I want to have a Data<int>
allocated...