
22 Sep
2005
22 Sep
'05
7:54 p.m.
"Rob Stewart" <stewart@sig.com> wrote in message news:200509221909.j8MJ9RKg013387@shannonhoon.balstatdev.susq.com...
From: "Andy Little" <andy@servocomm.freeserve.co.uk>
"Thore Karlsen" <sid@6581.com> wrote
How about :
guard.up(); guard.down();
... xyz.up(); ... xyz.down();
Out of context, and without a variable including (if not ending with) "guard," "up" and "down" don't fit well.
Is this not this variable always going to be called guard?(For example see ScopeGuardTest.cpp in the distro) I assume theres only ever one per scope Whatever I guess that these wont work either for the same reason. xyz.on(); xyz.off(); regards Andy Little