"Martin v. Loewis" wrote:
> > Probably, I've found an error in libstdc++. I can't catch "out_of_range"
> > exception.
> This is not a bug in the library, but in your code. You need to
> include before using out_of_range.
Thank you very much f
> Probably, I've found an error in libstdc++. I can't catch "out_of_range"
> exception.
This is not a bug in the library, but in your code. You need to
include before using out_of_range.
Regards,
Martin
Probably, I've found an error in libstdc++. I can't catch "out_of_range"
exception.
This is the code:
=== begin ===
#include
using namespace std;
int func (vector vec, unsigned idx)
{
try { return vec[idx]; }
catch (out_of_range e) { /* do smth */ }
}
=== end ===
Aft
3 matches
Mail list logo