From fe1b96a2592fae41afc35f4728713162a316697a Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Mon, 15 May 2017 11:30:58 +0200 Subject: [PATCH] MSVC 2015 can compile C++11 code, but does not define __cplusplus --- toml.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml.hpp b/toml.hpp index bfca738..cfae56b 100644 --- a/toml.hpp +++ b/toml.hpp @@ -29,7 +29,7 @@ # error "__cplusplus is not defined" #endif -#if __cplusplus < 201103L +#if __cplusplus < 201103L && _MSC_VER < 1900 # error "toml11 requires C++11 or later." #endif