I'm relatively new to C ++, and this expression confused me:
Service.h:
class ServiceHandle { public: ServiceHandle(SC_HANDLE h) : handle(h) {} ... operator SC_HANDLE() const {return handle;} protected: SC_HANDLE handle; };
I created the ServiceHandle object in other ways than the constructor specified here. I would like the actual SC_HANDLE switch to ChangeServiceConfig , how can I get this? I assume this is due to the operator, but I cannot figure out how to use it.
source share