From a6220adf3081c9c848f6d0a6fc3774cb168ccf9c Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Mon, 4 Jan 2021 16:29:36 +0100 Subject: cpp: Add const-overload of UserID::Signature::operator< lang/cpp/src/key.h, lang/cpp/src/key.cpp (UserID::Signature::operator<): Add const-overload. Deprecate non-const overload. -- This fixes compilation on FreeBSD with clang 10. --- lang/cpp/src/key.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lang/cpp/src/key.cpp') diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp index e536d080..f9cc2b60 100644 --- a/lang/cpp/src/key.cpp +++ b/lang/cpp/src/key.cpp @@ -866,6 +866,12 @@ UserID::Signature::Signature(const shared_gpgme_key_t &k, gpgme_user_id_t u, gpg } bool UserID::Signature::operator<(const Signature &other) +{ + // kept for binary compatibility + return static_cast(this)->operator<(other); +} + +bool UserID::Signature::operator<(const Signature &other) const { // based on cmp_signodes() in g10/keylist.c -- cgit