mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Don't add a semicolon after "BOOST_RETHROW"
Reason: When exceptions are enabled, the semicolon is already included in the macro expansion, and the resulting second semicolon (empty statement) may give compiler warnings. Note how we added braces, for when exceptions are disabled and the macro has an empty replacement list.
This commit is contained in:
@@ -1145,8 +1145,9 @@ operator<<( std::basic_ostream< Ch, Tr > & os, const dynamic_bitset< Block, Allo
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
|
||||
if ( rethrow )
|
||||
BOOST_RETHROW;
|
||||
if ( rethrow ) {
|
||||
BOOST_RETHROW
|
||||
}
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
}
|
||||
@@ -1217,8 +1218,9 @@ operator>>( std::basic_istream< Ch, Tr > & is, dynamic_bitset< Block, Alloc > &
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
|
||||
if ( rethrow )
|
||||
BOOST_RETHROW;
|
||||
if ( rethrow ) {
|
||||
BOOST_RETHROW
|
||||
}
|
||||
}
|
||||
BOOST_CATCH_END
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user