Skip to content

Commit a7f0344

Browse files
Require C++14
1 parent 01bd143 commit a7f0344

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

.github/workflows/cxx-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
cxx-version: [11, 14, 17, 20]
11+
cxx-version: [14, 17, 20]
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Install dependencies

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The mathematical functions are a lightweight implementation of the algorithms or
3737

3838
## Requirements
3939

40-
`xsimd` requires a C++11 compliant compiler. The following C++ compilers are supported:
40+
`xsimd` requires a C++14 compliant compiler. The following C++ compilers are supported:
4141

4242
Compiler | Version
4343
------------------------|-------------------------------

benchmark/CMakeLists.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,18 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
3535
endif()
3636

3737
if(NOT MSVC)
38-
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
3938
if (ENABLE_XTL_COMPLEX)
40-
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
41-
if (NOT HAS_CPP14_FLAG)
42-
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++14 support when xtl complex support is enabled")
39+
CHECK_CXX_COMPILER_FLAG("-std=c++17" HAS_CPP17_FLAG)
40+
if (NOT HAS_CPP17_FLAG)
41+
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++17 support when xtl complex support is enabled")
4342
endif()
44-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
43+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
4544
else()
46-
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
47-
if (NOT HAS_CPP11_FLAG)
48-
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++11 support!")
45+
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
46+
if (NOT HAS_CPP14_FLAG)
47+
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++14 support!")
4948
else()
50-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
49+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
5150
endif()
5251
endif()
5352
endif()

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The following SIMD instruction set extensions are supported:
6969
+--------------+---------------------------------------------------------+
7070

7171

72-
`xsimd` requires a C++11 compliant compiler. The following C++ compilers are supported:
72+
`xsimd` requires a C++14 compliant compiler. The following C++ compilers are supported:
7373

7474
+-------------------------+-------------------------------+
7575
| Compiler | Version |

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
6060
endif()
6161
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
6262
else()
63-
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
64-
if (NOT HAS_CPP11_FLAG)
65-
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++11 support!")
63+
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
64+
if (NOT HAS_CPP14_FLAG)
65+
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++14 support!")
6666
else()
67-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
67+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
6868
endif()
6969
endif()
7070
endif()

test/check_inline_specifier.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sed -r -n '/^####/,$ p' < $0 > $query_file
2020

2121
log_file=`mktemp -t`
2222

23-
clang-query --extra-arg "-std=c++11" --extra-arg="-I$top_srcdir/include" -f $query_file $top_srcdir/include/xsimd/xsimd.hpp -- | tee $log_file
23+
clang-query --extra-arg "-std=c++14" --extra-arg="-I$top_srcdir/include" -f $query_file $top_srcdir/include/xsimd/xsimd.hpp -- | tee $log_file
2424

2525
{ grep -E '^0 matches.' $log_file && failed=0 ; } || failed=1
2626

0 commit comments

Comments
 (0)