diff --git a/include/zenoh/api/encoding.hxx b/include/zenoh/api/encoding.hxx index ff623ad3..c33e1bd5 100644 --- a/include/zenoh/api/encoding.hxx +++ b/include/zenoh/api/encoding.hxx @@ -41,6 +41,8 @@ class Encoding : public Owned<::z_owned_encoding_t> { ::z_encoding_clone(&this->_0, other.loan()); }; + Encoding(Encoding&& other) = default; + /// @name Methods /// @brief Get string representation of encoding. @@ -76,6 +78,8 @@ class Encoding : public Owned<::z_owned_encoding_t> { } return *this; }; + + Encoding& operator=(Encoding&& other) = default; }; } // namespace zenoh \ No newline at end of file diff --git a/include/zenoh/api/sample.hxx b/include/zenoh/api/sample.hxx index fd8652fe..2f8dcec3 100644 --- a/include/zenoh/api/sample.hxx +++ b/include/zenoh/api/sample.hxx @@ -87,7 +87,7 @@ public: return detail::as_owned_cpp_obj(::z_sample_source_info(this->loan())); } #endif - /// @brief Construct a copy of this sample. + /// @brief Construct a shallow copy of this sample. Sample clone() const { Sample s(nullptr); ::z_sample_clone(&s._0, this->loan());