summaryrefslogtreecommitdiff
path: root/lang/cpp
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:39 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:39 +0900
commitfc59d1efdca7b2886739948b88a1aa8cd4243146 (patch)
tree3a1b870e9b2cf95e3826026afab018949576aac8 /lang/cpp
parentca69957d6d6eeb4e69e77a70106785570050901b (diff)
downloadgpgme-fc59d1efdca7b2886739948b88a1aa8cd4243146.tar.gz
gpgme-fc59d1efdca7b2886739948b88a1aa8cd4243146.tar.bz2
gpgme-fc59d1efdca7b2886739948b88a1aa8cd4243146.zip
Imported Upstream version 1.15.1upstream/1.15.1
Diffstat (limited to 'lang/cpp')
-rw-r--r--lang/cpp/src/key.cpp6
-rw-r--r--lang/cpp/src/key.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp
index e536d08..f9cc2b6 100644
--- a/lang/cpp/src/key.cpp
+++ b/lang/cpp/src/key.cpp
@@ -867,6 +867,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<const UserID::Signature *>(this)->operator<(other);
+}
+
+bool UserID::Signature::operator<(const Signature &other) const
+{
// based on cmp_signodes() in g10/keylist.c
// both signatures must belong to the same user ID
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h
index a793167..515bf18 100644
--- a/lang/cpp/src/key.h
+++ b/lang/cpp/src/key.h
@@ -468,7 +468,9 @@ public:
}
/*! Defines a canonical sort order for signatures of the same user ID. */
- bool operator<(const Signature &other);
+ bool operator<(const Signature &other) const;
+
+ GPGMEPP_DEPRECATED bool operator<(const Signature &other);
bool isNull() const
{