Giter Club home page Giter Club logo

Comments (10)

karljj1 avatar karljj1 commented on June 24, 2024

You could just call Encode and Decode using the PDU_Factory although it's more work than a straight copy.

from kdis.

carlocorradini avatar carlocorradini commented on June 24, 2024

@karljj1 Can we try to implement this

What do you think?

from kdis.

karljj1 avatar karljj1 commented on June 24, 2024

@karljj1 Can we try to implement this

What do you think?

This would involve adding a clone method to every PDU and DataType? It should be fine, just quite a bit of work ;)

from kdis.

carlocorradini avatar carlocorradini commented on June 24, 2024

See https://github.com/CppCodeReviewers/Covariant-Return-Types-and-Smart-Pointers

This is mind blowing

from kdis.

karljj1 avatar karljj1 commented on June 24, 2024

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 😄

from kdis.

carlocorradini avatar carlocorradini commented on June 24, 2024

With the refactor we've set the minimum C++ standard as 11.
Therefore, we should be good with this one

from kdis.

karljj1 avatar karljj1 commented on June 24, 2024

We should probably get rid of my old smart pointer then, if you haven't already 😄

from kdis.

carlocorradini avatar carlocorradini commented on June 24, 2024

Done in the previous PR

from kdis.

carlocorradini avatar carlocorradini commented on June 24, 2024

@karljj1 It's correct that Reliability_Header does not extend Header? Am I missing somethig? Thanks

from kdis.

karljj1 avatar karljj1 commented on June 24, 2024

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.

from kdis.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.