Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2002-11-21 15:47:39


> void ImplementBadValueTest( int nToTest )
> {
> BOOST_MESSAGE( format( "Testing value %d" ) % nToTest );
> throw std::runtime_error( "Unexpected!" );
> }

I've got it. When you throw an exception here it skips parameters iteration
here:

{ m_function( *m_curr_parameter ); ++m_curr_parameter; }

should be

{ m_function( *m_curr_parameter++ ); }

Fixed. Thank you.

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk