From d5b266fe1cc3527907bfa8bea1d283160421c545 Mon Sep 17 00:00:00 2001 From: Dave Cridland Date: Fri, 17 Dec 2021 18:38:22 +0000 Subject: [PATCH] Update to C++20 --- include/spiffing/classification.h | 2 +- include/spiffing/tagset.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spiffing/classification.h b/include/spiffing/classification.h index f8fb1c3..fb8f42c 100644 --- a/include/spiffing/classification.h +++ b/include/spiffing/classification.h @@ -88,7 +88,7 @@ namespace Spiffing { }; struct ClassificationHierarchyCompare { - bool operator() (std::shared_ptr const & l, std::shared_ptr const & r) { + bool operator() (std::shared_ptr const & l, std::shared_ptr const & r) const { return l->hierarchy() < r->hierarchy(); } }; diff --git a/include/spiffing/tagset.h b/include/spiffing/tagset.h index 3b3775f..f21dd52 100644 --- a/include/spiffing/tagset.h +++ b/include/spiffing/tagset.h @@ -32,6 +32,7 @@ SOFTWARE. #include #include #include +#include namespace Spiffing { class TagSet {