diff --git a/include/zenoh/api/encoding.hxx b/include/zenoh/api/encoding.hxx index 9434a074..10c11c68 100644 --- a/include/zenoh/api/encoding.hxx +++ b/include/zenoh/api/encoding.hxx @@ -71,6 +71,13 @@ class Encoding : public Owned<::z_owned_encoding_t> { return *this; }; + /// @brief Equality relation. + /// @param other an encoding to compare with. + /// @return true if both encodings are equal, false otherwise. + bool operator==(const Encoding& other) { + return ::z_encoding_equals(interop::as_loaned_c_ptr(*this), interop::as_loaned_c_ptr(other)); + }; + Encoding& operator=(Encoding&& other) = default; }; diff --git a/zenoh-c b/zenoh-c index 610a4b90..7fb6cb9d 160000 --- a/zenoh-c +++ b/zenoh-c @@ -1 +1 @@ -Subproject commit 610a4b9057a703ecba5f098e084bdc40e4e786f3 +Subproject commit 7fb6cb9daba3fba8cc138f3ce335f842fb17c901 diff --git a/zenoh-pico b/zenoh-pico index c9deea09..98c2283b 160000 --- a/zenoh-pico +++ b/zenoh-pico @@ -1 +1 @@ -Subproject commit c9deea09d1f126008e6c3558433049caa260d102 +Subproject commit 98c2283b41bd958d85f07a3f2bb375ee3977bed5