Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clone method to Reply #290

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Nov 22, 2024

Add clone method to Reply

Required here https://github.com/ros2/rmw_zenoh/pull/311/files

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Copy link

PR missing one of the required labels: {'internal', 'dependencies', 'bug', 'new feature', 'documentation', 'enhancement', 'breaking-change'}

@@ -84,6 +84,16 @@ class Reply : public Owned<::z_owned_reply_t> {
return {};
}
#endif

/// @brief Construct a a shallow copy of this Reply.
/// This can be used, to send reply replies outside of ``Queryable`` callback.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the documentation is wrong, since it is describes the behavior of Query clone.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you help me with right documentation here ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just /// @brief Construct a a shallow copy of this Reply. should be good enough.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, could you also remove an extra a before shallow_copy ?

@DenisBiryukov91 DenisBiryukov91 added enhancement New feature or request api sync Synchronize API with other bindings labels Nov 25, 2024
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
include/zenoh/api/reply.hxx Outdated Show resolved Hide resolved
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde requested a review from milyin November 25, 2024 17:33
@milyin milyin enabled auto-merge (squash) November 25, 2024 17:45
@milyin milyin disabled auto-merge November 26, 2024 09:58
@milyin milyin merged commit e8eca99 into eclipse-zenoh:main Nov 26, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api sync Synchronize API with other bindings enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants