Kubilay Kaan - 2013-10-23

Hello friends,
is it possible to use the scope guard with interfaces of com classes? I never see an example to this.

for example like this:
IWMObjPtr myIFacePtr;
myIFacePtr->Login(..);
....
::loki::ScopeGuard guard = ::loki::MakeObjGuard(myIFacePtr,&IWMObjPtr::Logout);

or so...

Thx in Advance.