C++ language version detection (#418)

* added visual_studio folder where visual_studio cmake generated, local artefacts are

* C++ version detection
This commit is contained in:
dbj
2020-01-06 17:38:09 +01:00
committed by Daniel Lemire
parent a9e990251d
commit 2caa6e3370
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
visual_studio
/benchbranch/
/submodules/
+16
View File
@@ -1,6 +1,22 @@
#ifndef SIMDJSON_SIMDJSON_H
#define SIMDJSON_SIMDJSON_H
#ifndef __cplusplus
#error SIMDBJSON requires C++ compiler
#endif
#ifndef SIMDJSON_CPLUSPLUS
#if defined(_MSVC_LANG) && !defined(__clang__)
#define SIMDJSON_CPLUSPLUS (_MSC_VER == 1900 ? 201103L : _MSVC_LANG)
#else
#define SIMDJSON_CPLUSPLUS __cplusplus
#endif
#endif
#if (SIMDJSON_CPLUSPLUS < 201703L)
#error SIMDBJSON requires the standard C++17 compiler
#endif
#include <string>
namespace simdjson {