From 00f804a5f32cce83a820f004ec5d323b0ee03b02 Mon Sep 17 00:00:00 2001 From: Stiffly Date: Thu, 15 Oct 2015 14:00:11 +0200 Subject: [PATCH] Moved default value for config parameters to be a function argument to support other types too... --- include/Core/ConfigFile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Core/ConfigFile.h b/include/Core/ConfigFile.h index 90e2e16..dd91578 100755 --- a/include/Core/ConfigFile.h +++ b/include/Core/ConfigFile.h @@ -19,8 +19,8 @@ private: ConfigFile(std::string path); public: - template - T GetValue(std::string key) + template + T GetValue(std::string key, T defaultValue) { return m_ptree.get(key, defaultValue); }