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<