Is there any doc explaining how Janitor works?
I'm using it like this:
MyClass * myVar = NULL;
Janitor<MyClass> j_myVar(myVar);
j_myVar.release();
try
{
myVar = new MyClass();
j_myVar. <-- How to tell Janitor that var is now allocated and that it should release it?
}
catch (...)
{
//
}
P.S. I have already posted this question to the [email protected] group, but it seems I am not registered there and I can't see it.
