mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Set badbit if an exception is thrown during output
Reason: This is what the standard formatted output functions do.
This commit is contained in:
@@ -1177,7 +1177,7 @@ operator<<( std::basic_ostream< Ch, Tr > & os, const dynamic_bitset< Block, Allo
|
||||
bool rethrow = false;
|
||||
BOOST_TRY
|
||||
{
|
||||
os.setstate( ios_base::failbit );
|
||||
os.setstate( ios_base::badbit );
|
||||
}
|
||||
BOOST_CATCH( ... )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user