diff options
author | andot <mabingyao@gmail.com> | 2014-07-23 14:39:05 +0800 |
---|---|---|
committer | andot <mabingyao@gmail.com> | 2014-07-23 14:39:05 +0800 |
commit | caa165ece89136a4ef6bde87df865d4288ff94cf (patch) | |
tree | 5994fc7695a79668a32c78999a3376c3cdb3edd8 /include/ini.h | |
parent | 2abffa80e10a9e0c4203310f0fa5b3f6949062e1 (diff) |
Fixed compatibility issue with VS2013
Diffstat (limited to 'include/ini.h')
-rw-r--r-- | include/ini.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ini.h b/include/ini.h index 1d881e9..69137a2 100644 --- a/include/ini.h +++ b/include/ini.h @@ -125,7 +125,11 @@ private: * @param value * @return string */ +#ifdef _MSC_VER + static const char* bool2str(const bool value) +#else static constexpr const char* bool2str(const bool value) +#endif { // cast to a string return ( static_cast<bool>(value) ? "On" : "Off"); |