Set badbit if an exception is thrown during output

Reason: This is what the standard formatted output functions do.
This commit is contained in:
Gennaro Prota
2025-07-23 16:56:29 +02:00
parent 3d7458554d
commit b18ddca496

View File

@@ -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( ... )
{