Consider providing ServiceHandle::get()
By analogy with smart pointers
You can already get the same effect with
&(*myServiceHandle), so this doesn't give up any further encapsulation.
#1 Updated by Kyle Knoepfel almost 4 years ago
- Status changed from New to Assigned
- Assignee set to Paul Russo
- Estimated time set to 1.00 h
This seems like a reasonable request, and we will implement it. Please note that the purpose of the ServiceHandle is that the object lifetime is handled for the user, without the user needing to worry about the validity of any underlying pointers. If the Service object is renewed or replaced, the ServiceHandle automatically makes sure you are using the new one. For this reason, we discourage caching the underlying pointer.