-
Notifications
You must be signed in to change notification settings - Fork 278
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 deleted functions #2492
remove deleted functions #2492
Conversation
👇 Click on the image for a new way to code review
Legend |
Codecov Report
@@ Coverage Diff @@
## main #2492 +/- ##
==========================================
- Coverage 62.12% 62.04% -0.08%
==========================================
Files 121 102 -19
Lines 22827 22768 -59
Branches 11206 11206
==========================================
- Hits 14181 14127 -54
+ Misses 6439 6434 -5
Partials 2207 2207
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
is extremely suspicious. Anyone have any idea? |
About what? It looks like many of these |
yeah but deleted destructors seem weird. You can't construct something like that. I did such a thing and tested that compilation works. That's about it. |
googling indicates these things are basically no op. Removed. |
//! @name NOT Implemented | ||
//@{ | ||
//! Copy constructor | ||
BmpImage(const BmpImage&) = delete; |
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.
I think we need to be more careful with these changes. Even in 0.27
we were "not implementing" the copy constructor & assignment in purpose, with the aim of making some classes not copyable. This would be an important API change, and probably we do not want to make such objects copyable anyways.
The deletion of the default
destructors looks fine to me though
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.
for all the removals here, the base class has deleted copy constructor and operator= which is inherited by the derived classes. All of them are not copyable unless such a thing is implemented per class.
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.
Fair enough, I did not notice the Image
class already was deleting the copy constructor and operator.
ping @kmilos |
The inherited Image class already has these same deleted functions. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This is a holdover from C++98. No need anymore Signed-off-by: Rosen Penev <rosenp@gmail.com>
No description provided.