Remove JSON_HAS_STRING_VIEW

Instead implement @gregmarr's PR comments that perfect forwarding should be used. Also cleaned up cpp language standard detection.
This commit is contained in:
Jamie Seward 2017-10-23 00:43:26 -07:00
parent d468f8c4e6
commit 33c6511dd0
2 changed files with 70 additions and 32 deletions

View file

@ -82,7 +82,7 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4389 /wd4309 /wd4566 /wd4996")
if(MSVC_VERSION GREATER_EQUAL 1910)
# Enable c++17 support in Visual Studio 2017 (for testing string_view support)
# Enable c++17 support in Visual Studio 2017 (for testing perfect forwarding and transparent comparator in find() / count())
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17")
endif()
endif()