Skip to content

Commit

Permalink
Merge pull request #167 from DenisBiryukov91/dev/add_encoding_move
Browse files Browse the repository at this point in the history
reintroduce encdoing move shadowed by pr #166
  • Loading branch information
milyin authored Aug 1, 2024
2 parents 1480147 + 85c73fb commit c419dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/zenoh/api/encoding.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -76,6 +78,8 @@ class Encoding : public Owned<::z_owned_encoding_t> {
}
return *this;
};

Encoding& operator=(Encoding&& other) = default;
};

} // namespace zenoh
2 changes: 1 addition & 1 deletion include/zenoh/api/sample.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public:
return detail::as_owned_cpp_obj<SourceInfo>(::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());
Expand Down

0 comments on commit c419dee

Please sign in to comment.