Skip to content

Commit d08efaa

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

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
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

tools/mkclass/classcompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
577577

578578
/* destructor */
579579
m_Header << "public:" << std::endl
580-
<< "\t" << "~ObjectImpl<" << klass.Name << ">() override;" << std::endl;
580+
<< "\t" << "~ObjectImpl() override;" << std::endl;
581581

582582
m_Impl << "ObjectImpl<" << klass.Name << ">::~ObjectImpl()" << std::endl
583583
<< "{ }" << std::endl << std::endl;

0 commit comments

Comments
 (0)