Original Post
hi all,
I get the folowing error when i use this templated function
,class _STL::allocator >)'' : could not deduce template argument fo
r ''T''
i use the function like this:
template<class T> T getSetting(std::string name)
{
return toVal(settingMap[name]);
}
error C2783: ''T __thiscall cSettingsManager::getSetting(class _STL::basic_string
int a = cSettingsManager::getSingleton().getSetting("test");
i v'' also tried to do this:
int a = cSettingsManager::getSingleton()<int>.getSetting("test");
but then i get this error:
error C2062: type ''int'' unexpected
thx in advance