IConnection lifetime management #184
ninjafinne
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
You can convert a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The createConnection() family of functions return a std::unique_ptr<sdbus::IConnection>.
It's then possible to share this connection with multiple proxies by dereferencing and passing by reference.
A shared_ptr would more clearly show the intent.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions