[C++-sig] Re: Random access iterators, and sequence protocol.

Nikolay Mladenov nickm at sitius.com
Sat Jul 5 19:58:34 CEST 2003


> To do this __getitem__ needs to generate an IndexError when the index
> is greater than or equal to size.  Do I _have_ to register an
> exception translator from something like std::range_error?  Is there
> an easier way to do this?  

I don't think you can do it any easier than that. And besides, if you
export
std::range_error this will automatically apply to your future container
exports.





More information about the Cplusplus-sig mailing list