Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Sep 16, 2003 at 05:04:32PM +0200, Lars Gullik Bjønnes wrote: >> Be careful now.... remember that the standard dictates different >> return values for [] (not quite sure about at) >> >> test_[] depending on const or not. >> >> A lot safer to put an assert there and just use [] instead of at. > | Assert would pulls in some header in paragraph.h. No good.
don't be daft. It is minimal. You have now moved into the realm of irrationality. | _I_ could live with > | if (pos >= text_.size()) | throw "Don't catch me"; | return text_[pos]; excpetions are not allowed yet. and if we used exceptions this assert would be caught and you would not get an abort at the approp. place. -- Lgb