diff options
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"); |