Re: out_of_range

2001-09-06 Thread Alexei Khlebnikov
"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

Re: out_of_range

2001-09-05 Thread Martin v. Loewis
> 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

out_of_range

2001-08-27 Thread Alexei Khlebnikov
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