std::span as an datatype for messages #1413
SpiRelli90
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Yep. Span is probably a better fit, but then you move from C++17 to C++20 and you also break APIs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
first of all thank you for your work on this library!
Currently every message to send or to publish uses string_view. I guess this is because it is a non owning continious block of memory.
Wouldn't the c++20 datatype std::span offer the same functionality? You would have the advantage that you dont have to
reinterpret_cast every message to a char*.
Beta Was this translation helpful? Give feedback.
All reactions