-
Notifications
You must be signed in to change notification settings - Fork 12
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
Clone PDU #18
Comments
You could just call Encode and Decode using the PDU_Factory although it's more work than a straight copy. |
See https://github.com/CppCodeReviewers/Covariant-Return-Types-and-Smart-Pointers This is mind blowing |
Looks interesting. I did avoid using some of the newer c++ features because I know some of the users of kdis were running it on a 20 year old toaster, but it may be time to embrace them 😄 |
With the refactor we've set the minimum C++ standard as 11. |
We should probably get rid of my old smart pointer then, if you haven't already 😄 |
Done in the previous PR |
@karljj1 It's correct that |
Yes Reliability header is only for PDU that support it, the PDU tend to be in a special reliable category. So instead we use multiple inheritance to add it in when needed. |
We need a method/mechanism to clone the
PDU
:Header
:Header
is "pure" simply return a copy of theHeader
Header
is the base class of a specialized PDU, clone the whole chain and return a copy of theHeader
(it can be casted to the correct PDU)PDU
, simply create a copy of thePDU
(clone the whole chain)@karljj1 I don't know if this is already possible but it's super useful (especially in my use-case)
The text was updated successfully, but these errors were encountered: