-
Notifications
You must be signed in to change notification settings - Fork 438
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
Fix type mismatch when move nostd::shared_ptr
#1815
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1815 +/- ##
=======================================
Coverage 85.73% 85.73%
=======================================
Files 171 171
Lines 5240 5240
=======================================
Hits 4492 4492
Misses 748 748
|
Signed-off-by: owent <[email protected]>
Signed-off-by: owent <[email protected]>
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.
LGTM. Validated the changes, there is no crash with the fix. Thanks.
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.
Thanks for the fix.
I don't even understand the original std::shared_ptr
code in the first place,
and the fix even less.
Some explanations would be welcome, to understand what is going on here.
If we move a nostd::shared_ptr of derived class to a nostd::shared_ptr of base class,we will use the constructor of |
Signed-off-by: owent [email protected]
Fixes #1806
Changes
Fix type mismatch when move
nostd::shared_ptr
.