From 58c53d146345e4abdbaf98147cce9a8e3aaadcaf Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 12 Feb 2023 12:00:07 +0100 Subject: [PATCH] scan.h: declare operator() of std::set compare function const This is required in C++-17 and LLVM switched to C++-17 in llvmorg-16-init-975-gb1356504e63a ([LLVM] Update C++ standard to 17, Fri Aug 5 21:45:55 2022 +0200). Signed-off-by: Sven Verdoolaege --- scan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.h b/scan.h index dd7f664..e0589ac 100644 --- a/scan.h +++ b/scan.h @@ -71,7 +71,7 @@ struct Independent { */ struct less_name { bool operator()(const clang::TypeDecl *x, - const clang::TypeDecl *y) { + const clang::TypeDecl *y) const { return x->getNameAsString().compare(y->getNameAsString()) < 0; } }; -- 2.11.4.GIT