-
Notifications
You must be signed in to change notification settings - Fork 57
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
Avoid raw pointers in projecting implementation #85
Conversation
hey @iglesias would you like to take a look? thanks |
Hey! I run and it fixed 2 of the errors. There's still this one (summarized):
I doubt it is relevant though. It passes without the sanitizer and there's no kind of out of memory error. And the name of the test fits with it having this type of error ':-D |
include/tapkee/projection.hpp
Outdated
ProjectingFunction(ProjectionImplementation* impl) : implementation(impl) | ||
{ | ||
} | ||
ProjectingFunction(const ProjectingFunction& other) : implementation(other.implementation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the copy constructor explicitly needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, right. Going to remove that.
include/tapkee/projection.hpp
Outdated
ProjectingFunction(ProjectionImplementation* impl) : implementation(impl){}; | ||
//! Destroys current implementation | ||
void clear() | ||
ProjectingFunction() : implementation(NULL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor one, but let's use nullptr
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing..
lgtm 🚢 |
Probably fixes #84