diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-08-09 22:15:58 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-08-09 22:24:43 +0200 |
commit | 2f510c5632ba83b97c6eb86ebf5e39085fde74fe (patch) | |
tree | f4351d26a3a81d24a281e2079bfc7e841ee7ff82 | |
parent | 6442107478c5418cd0053eef626f53d565fda7e1 (diff) |
Bump to C++17
Comparison operators need to be const-invocable now, but
otherwise no change seems necessary.
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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(); |