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 Bytes serialization support for std::span #273

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

JafarAbdi
Copy link
Contributor

Makes it easy to use old style arrays + pointers with size without allocating memory.

Copy link

github-actions bot commented Nov 4, 2024

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

@DenisBiryukov91 DenisBiryukov91 added the enhancement New feature or request label Nov 5, 2024
@@ -17,6 +17,10 @@
#include "entity.pb.h"
#endif

#if __cplusplus >= 202002L
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 this is not necessary (especially given that we do not include other related stl headers) , since the corresponding header is already included by serialization.hxx.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! I removed it from the include directives

@milyin milyin enabled auto-merge (squash) November 14, 2024 15:06
@milyin milyin disabled auto-merge November 14, 2024 15:39
@milyin milyin merged commit 4ad359d into eclipse-zenoh:main Nov 14, 2024
16 checks passed
@JafarAbdi JafarAbdi deleted the feature/span_bytes branch November 14, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants