Moved default value for config parameters to be a function argument to support other types too...
This commit is contained in:
@@ -19,8 +19,8 @@ private:
|
|||||||
ConfigFile(std::string path);
|
ConfigFile(std::string path);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
template <typename T, T defaultValue>
|
template <typename T>
|
||||||
T GetValue(std::string key)
|
T GetValue(std::string key, T defaultValue)
|
||||||
{
|
{
|
||||||
return m_ptree.get<T>(key, defaultValue);
|
return m_ptree.get<T>(key, defaultValue);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user