Title: Janitor

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 (...)
{
    //
}


Reply via email to