Skip to content

Commit

Permalink
Setting c++17 for all compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Oct 20, 2023
1 parent ca32d26 commit db040c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ option(USE_INCLUDED_SSL "Use included libressl" ON)
option(BUILD_FOR_CODECOVERAGE "Build for code coverage analysis" OFF)

add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
set (CMAKE_CXX_STANDARD 17)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
Expand Down
2 changes: 0 additions & 2 deletions Source/Common/NMR_StringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ namespace NMR {
nfDouble dResult = 0.0;

// Convert to double and make a input and range check!
nfChar * pEndPtr;

std::from_chars_result result = std::from_chars(pszValue, pszValue + strlen(pszValue), dResult);

// Check if any conversion happened
Expand Down

0 comments on commit db040c8

Please sign in to comment.