|
Boost Users : |
Subject: Re: [Boost-users] [TEST] Throws "Escaping" both BOOST_CHECK_THROW and try{}
From: Merrill Cornish (merrill.cornish_at_[hidden])
Date: 2016-02-09 11:09:42
On 2/9/2016 12:58 AM, Gavin Lambert wrote:
> Do you have a throw-specification or noexcept on the arcSize() method?
Gavin,
Thanks for your reply.
I didn't have my own out-of-range check in the case of arcSize() since
I deliberately used vector::at() which does its own check and raises
std::out-of-range rather than use vector::operator[] which does not
check. The original error message that started me looking into this was
"terminate called after throwing an instance of 'std::out_of_range'", so
the at() raised the exception I told the BOOST_CHECK_THROW to look for.
Merrill
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net