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

Remove unused non-compiling function #551

Merged
merged 1 commit into from Jan 25, 2022

Conversation

RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Jan 25, 2022

This is something discovered during the development of #540
Basically this function wasn't refactored properly as part of #320 because _data wasn't updated to data().
Because this function was unused and continues to be unused to this day the template was never instantiated and the compilation did never fail.

I talked with @joka921 about this and we came to the conclusion that passing raw pointers to read data of potentially arbitrary length is dangerous and error-prone.
If this function is ever required in the future it should get re-implemented using std::span to provide that extra bit of safety, but for now it can just be removed to keep maintenance costs at a minimum

@joka921 joka921 merged commit 3bdc90b into ad-freiburg:master Jan 25, 2022
@RobinTF RobinTF deleted the fix-compilation-error branch January 25, 2022 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants