Skip to content

Commit b31e079

Browse files
committed
Switch to C++20
1 parent 4e840cf commit b31e079

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/linux.bash

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ export CTEST_OUTPUT_ON_FAILURE=1
77
CMAKE_OPTS=()
88
# -Wstringop-overflow is notorious for false positives and has been a problem for years.
99
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
10-
# -Wtemplate-id-cdtor leaks from using the generated headers. We should reenable this once
11-
# we're considering moving to C++20 and/or the -ti.hpp files are generated differently.
12-
WARN_FLAGS="-Wall -Wextra -Wno-template-id-cdtor -Wno-stringop-overflow"
10+
WARN_FLAGS="-Wall -Wextra -Wno-stringop-overflow"
1311

1412
case "$DISTRO" in
1513
alpine:*)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
cmake_minimum_required(VERSION 3.17...3.17)
55
set(BOOST_MIN_VERSION "1.66.0")
66

7-
set(CMAKE_CXX_STANDARD 17)
7+
set(CMAKE_CXX_STANDARD 20)
88
set(CMAKE_CXX_STANDARD_REQUIRED ON)
99
set(CMAKE_CXX_EXTENSIONS OFF)
1010

0 commit comments

Comments
 (0)