-
Notifications
You must be signed in to change notification settings - Fork 44
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
Use shared_ptr in &Engine::AddWorld() fn #30
Conversation
Signed-off-by: claireyywang <clairewang@openrobotics.org>
The changes look fine. Just curious, was this causing a problem? I think the original intention was that the |
There wasn't any problem. I've just been reading about C++ and wondered if using shared_ptr would prevent any future issues. If it's good as is, I'd be fine closing this PR. What do you think? @iche033 |
ok sounds good. In that case, we could make |
Signed-off-by: claireyywang <clairewang@openrobotics.org>
Signed-off-by: claireyywang <clairewang@openrobotics.org>
@iche033 friendly ping for visibility. I addressed the previous comment. Ready for another round of review whenever works the best for you. Thanks! |
I think it might be a better practice to create
shared_ptr
instead of creating local object.