From 6049e7ee2d140ad8009e6d0eb20275d149458b67 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Tue, 30 Apr 2024 07:51:30 +0800 Subject: [PATCH] fix cpp version --- CMakeLists.txt | 2 +- iguana/reflection.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6482c1f..d53ede6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.15) project(iguana) if(MSVC) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++20") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17") add_compile_options(/utf-8) ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) add_compile_options("$<$:/bigobj>") diff --git a/iguana/reflection.hpp b/iguana/reflection.hpp index efe303e3..aad5dda3 100644 --- a/iguana/reflection.hpp +++ b/iguana/reflection.hpp @@ -911,7 +911,7 @@ constexpr const std::string_view get_name() { } namespace detail { -#if __cplusplus < 201703L +#if __cplusplus > 201703L template constexpr bool get_index_imple() { if constexpr (std::is_same_v<