-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Chain SGObject::put #5047
Comments
yep I think that would be nice |
hey I was having a look at this issue and thought I might be able to help. I was under the impression
and |
Yup, that’s correct :) so you would probably have to return something like shared_from_this() in put |
cool, thanks! |
I tried making the change but there are a few test cases (358,432,443,470,476) that make objects without shared pointers and call I can try to change the instantiation in these test cases, but wasn't sure if that's something the team is ok with. |
Hmm, try to get it to run and send a PR and then we can have a look :) |
Smells like #5139. I'll add this to my list. Although, I'm a bit worried about its implications in SWIG interfaces. |
I was wondering if it would make sense for
SGObject::put
to returnthis
by reference? That way we could chain various put calls:The text was updated successfully, but these errors were encountered: