From 2f510c5632ba83b97c6eb86ebf5e39085fde74fe Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 9 Aug 2021 22:15:58 +0200 Subject: Bump to C++17 Comparison operators need to be const-invocable now, but otherwise no change seems necessary. --- CMakeLists.txt | 2 +- apt-private/private-cacheset.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec2ec066f..deaebc72f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ add_definitions(${LFS_DEFINITIONS}) link_libraries(${LFS_LIBRARIES}) # Set compiler flags -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) diff --git a/apt-private/private-cacheset.h b/apt-private/private-cacheset.h index 8848aa3aa..f3f737b5c 100644 --- a/apt-private/private-cacheset.h +++ b/apt-private/private-cacheset.h @@ -34,7 +34,7 @@ public: struct VersionSortDescriptionLocality /*{{{*/ { bool operator () (const VerIteratorWithCaching &v_lhs, - const VerIteratorWithCaching &v_rhs) + const VerIteratorWithCaching &v_rhs) const { pkgCache::DescFile const *A = v_lhs.CachedDescFile(); pkgCache::DescFile const *B = v_rhs.CachedDescFile(); -- cgit v1.2.3-70-g09d2