From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-04-05 13:06:36
Thursday, April 5, 2007, 12:41:49 AM, you wrote:
>> Is the use of __LINE__ correct? I can't think of a way to break it,
>> which in no way means it's perfect...
> It's correct unless you put more than one scope(exit) in one line.
It breaks on VC 7.0+ with /ZI option. Use __COUNTER__ instead.
-- Best regards, Andrey mailto:andysem_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk