Index: src/libchcore/TConfig.h =================================================================== diff -u -N -rb684bec49aaaea4b89ab2e599497f4085d8698a3 -ra296360740c0d5a9e84f6be32e1654128d2953bc --- src/libchcore/TConfig.h (.../TConfig.h) (revision b684bec49aaaea4b89ab2e599497f4085d8698a3) +++ src/libchcore/TConfig.h (.../TConfig.h) (revision a296360740c0d5a9e84f6be32e1654128d2953bc) @@ -24,7 +24,7 @@ #define __TCONFIG_H__ #pragma warning(push) -#pragma warning(disable: 4100 4702) +#pragma warning(disable: 4100 4702 4512) #include #include #pragma warning(pop) @@ -165,13 +165,13 @@ #define CONFIG_MEMBER_SERIALIZATION(cls)\ namespace chcore {\ template<>\ - static void SetConfigValue(TConfig& rConfig, PCTSTR pszPropName, const cls& rValue)\ + inline void SetConfigValue(TConfig& rConfig, PCTSTR pszPropName, const cls& rValue)\ {\ rValue.StoreInConfig(rConfig, pszPropName);\ }\ \ template<>\ - static cls GetConfigValueDef(const TConfig& rConfig, PCTSTR pszPropName, const cls& rDefault)\ + inline cls GetConfigValueDef(const TConfig& rConfig, PCTSTR pszPropName, const cls& rDefault)\ {\ cls tValue;\ if(!tValue.ReadFromConfig(rConfig, pszPropName))\ @@ -180,7 +180,7 @@ }\ \ template<>\ - static bool GetConfigValue(const TConfig& rConfig, PCTSTR pszPropName, cls& rValue)\ + inline bool GetConfigValue(const TConfig& rConfig, PCTSTR pszPropName, cls& rValue)\ {\ return rValue.ReadFromConfig(rConfig, pszPropName);\ }\ @@ -189,13 +189,13 @@ #define CONFIG_STANDALONE_SERIALIZATION(cls)\ namespace chcore {\ template<>\ - static void SetConfigValue(TConfig& rConfig, PCTSTR pszPropName, const cls& rValue)\ + inline void SetConfigValue(TConfig& rConfig, PCTSTR pszPropName, const cls& rValue)\ {\ StoreInConfig(rValue, rConfig, pszPropName);\ }\ \ template<>\ - static cls GetConfigValueDef(const TConfig& rConfig, PCTSTR pszPropName, const cls& rDefault)\ + inline cls GetConfigValueDef(const TConfig& rConfig, PCTSTR pszPropName, const cls& rDefault)\ {\ cls tValue;\ if(!ReadFromConfig(tValue, rConfig, pszPropName))\ @@ -204,7 +204,7 @@ }\ \ template<>\ - static bool GetConfigValue(const TConfig& rConfig, PCTSTR pszPropName, cls& rValue)\ + inline bool GetConfigValue(const TConfig& rConfig, PCTSTR pszPropName, cls& rValue)\ {\ return ReadFromConfig(rValue, rConfig, pszPropName);\ }\