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:
Gennaro Prota
2025-07-07 19:24:19 +02:00
parent 7c8b554850
commit d96d00ef08

View File

@@ -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
}