-
Notifications
You must be signed in to change notification settings - Fork 111
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
Convert raw pointers to smart pointers #316
Convert raw pointers to smart pointers #316
Conversation
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.
Cppcheck (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Codecov Report
@@ Coverage Diff @@
## master #316 +/- ##
==========================================
- Coverage 97.59% 97.15% -0.45%
==========================================
Files 53 54 +1
Lines 7487 7587 +100
==========================================
+ Hits 7307 7371 +64
- Misses 180 216 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I'm scared about memory leak with I know that can be a heavy work, but I think is necessary to ensure a good quality with this rework. Maybe can be usefull to add example, and test memory ( with valgrind ) with these example. |
I have removed all the calls to |
Better do more checks. Thanks in advance |
Fix typo in benchmark FloydWarshall
083cdd8
to
57dc2a4
Compare
I've run all the tests singularly with valgrind and I didn't find any leaks. Also with the fsanitize=leak flag they compiled and run fine. I think that it looks safe. Are there any more tests that you think we should do to make sure? |
Ok, it's fine! |
All the raw pointers used in the library have been converted to smart pointers (issue #234 ).