Moved default value for config parameters to be a function argument to support other types too...

This commit is contained in:
Stiffly
2015-10-15 14:00:11 +02:00
parent cf5b465e0b
commit 00f804a5f3
+2 -2
View File
@@ -19,8 +19,8 @@ private:
ConfigFile(std::string path);
public:
template <typename T, T defaultValue>
T GetValue(std::string key)
template <typename T>
T GetValue(std::string key, T defaultValue)
{
return m_ptree.get<T>(key, defaultValue);
}