|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50707 - trunk/libs/scope_exit/test
From: Alexander.Nasonov_at_[hidden]
Date: 2009-01-21 14:35:02
Author: nasonov
Date: 2009-01-21 14:35:02 EST (Wed, 21 Jan 2009)
New Revision: 50707
URL: http://svn.boost.org/trac/boost/changeset/50707
Log:
Drop support of function-try-block in ScopeExit
Text files modified:
trunk/libs/scope_exit/test/native.cpp | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
Modified: trunk/libs/scope_exit/test/native.cpp
==============================================================================
--- trunk/libs/scope_exit/test/native.cpp (original)
+++ trunk/libs/scope_exit/test/native.cpp 2009-01-21 14:35:02 EST (Wed, 21 Jan 2009)
@@ -42,13 +42,14 @@
} BOOST_SCOPE_EXIT_END
BOOST_SCOPE_EXIT( (&i) )
- try
{
- i = 2;
- Holder<>::g_long = 2;
- throw 0;
- } catch(...) {}
- BOOST_SCOPE_EXIT_END
+ try
+ {
+ i = 2;
+ Holder<>::g_long = 2;
+ throw 0;
+ } catch(...) {}
+ } BOOST_SCOPE_EXIT_END
BOOST_CHECK(i == 0);
BOOST_CHECK(g_str == "");
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk