From 00af75b9ccca8e88b65725d8e1c67e5f7a1147d3 Mon Sep 17 00:00:00 2001 From: Aleksander Tsarenko Date: Mon, 3 Feb 2025 19:45:06 +0200 Subject: [PATCH 1/2] use always JSONCPP_HAS_STRING_VIEW --- include/json/value.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/json/value.h b/include/json/value.h index 5f6544329..06bc96171 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -39,9 +39,9 @@ #endif #endif -#if __cplusplus >= 201703L +//#if __cplusplus >= 201703L #define JSONCPP_HAS_STRING_VIEW 1 -#endif +//#endif #include #include From d8003e888eaadcc61f61c38734c253e540782280 Mon Sep 17 00:00:00 2001 From: "Viktor.Markvardt" Date: Tue, 11 Feb 2025 17:11:53 +0200 Subject: [PATCH 2/2] Used c++ 17 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6104c5ce5..2accd8a86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ endforeach() # Build the library with C++11 standard support, independent from other including # software which may use a different CXX_STANDARD or CMAKE_CXX_STANDARD. -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON)