Skip to content

Commit f6d3114

Browse files
authored
Merge pull request #3751 from JanVogelsang/pynest-ng-cpp20
Bump C++ standard to C++20
2 parents 8b68edf + a3e8572 commit f6d3114

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/nestbuildmatrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: "Run cppcheck..."
113113
run: |
114-
cppcheck --enable=all --language=c++ --std=c++17 -i sli/ --suppressions-list=.cppcheck_suppressions ./
114+
cppcheck --enable=all --language=c++ --std=c++20 -i sli/ --suppressions-list=.cppcheck_suppressions ./
115115
116116
rstcheck:
117117
runs-on: "ubuntu-22.04"

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
2424

2525
project( nest CXX C )
2626

27-
set( CMAKE_CXX_STANDARD 17 )
27+
set( CMAKE_CXX_STANDARD 20 )
2828
set( CMAKE_CXX_STANDARD_REQUIRED True )
29-
set( CMAKE_CXX_EXTENSIONS OFF ) # -std=c++17 instead of gnu++17
29+
set( CMAKE_CXX_EXTENSIONS OFF ) # -std=c++20 instead of gnu++20
3030

3131
set( NEST_USER_EMAIL "users@nest-simulator.org" )
3232

doc/htmldoc/developer_space/workflows/nest_with_ides.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Setting up the project
148148

149149
a. *Cmake: Build Directory* to ``${workspaceFolder}/../build``
150150
#. *Cmake: Install Prefix* to ``${workspaceFolder}/../build/install``
151-
#. *Cpp Standard* to ``c++17``
151+
#. *Cpp Standard* to ``c++20``
152152

153153
#. In the source directory, open ``.vscode/c_cpp_properties.json``, and add
154154

doc/htmldoc/whats_new/v3.10/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@ New NEST
235235
}
236236

237237

238+
NEST requires C++20
239+
-------------------
240+
241+
From NEST 3.10 on, we use some C++20 features in NEST code. Therefore,
242+
NEST needs to be built with a compiler that supports C++20. Most
243+
recent C++ compilers should do so.
244+
245+
238246
Model improvements
239247
------------------
240248

0 commit comments

Comments
 (0)