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

Consider templatizing the net_entity container in the net_ip class #42

Open
cliffg-softwarelibre opened this issue Nov 18, 2019 · 0 comments
Labels
design enhancement Software design improvement, improving genericity

Comments

@cliffg-softwarelibre
Copy link
Member

Currently the container inside the net_ip class is a std::vector, which is a good default. However, some applications may wish to use a different container, or may wish to use statically allocated memory instead of a dynamic sized container (e.g. in a small embedded environment).

The container type could be a template parameter on the class (changing net_ip into a class template instead of a regular class).

This issue is similar to the other Chops Net IP issues where we are providing more flexibility in the container and buffer types.

@cliffg-softwarelibre cliffg-softwarelibre added the design enhancement Software design improvement, improving genericity label Nov 18, 2019
@cliffg-softwarelibre cliffg-softwarelibre changed the title Consider templatizing net entity container in net_ip class Consider templatizing the net_entity container in the net_ip class Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design enhancement Software design improvement, improving genericity
Projects
None yet
Development

No branches or pull requests

1 participant