static void invoke(T & previous_ref, const T & previous_value){
BOOST_TRY{
previous_ref = previous_value;
- }
- BOOST_CATCH(::std::exception &) {
+ }
+ BOOST_CATCH(::std::exception &) {
// we must ignore it - we are in destructor
}
BOOST_CATCH_END
public:
state_saver(
T & object
- ) :
+ ) :
previous_value(object),
- previous_ref(object)
+ previous_ref(object)
{}
-
+
~state_saver() {
#ifndef BOOST_NO_EXCEPTIONS
typedef typename mpl::eval_if<