This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Tighten length error check in string::replace


On Thu, Apr 25, 2002 at 09:37:57PM +0200, Paolo Carlini wrote:
> 
> As regards the testcase at hand, however, it is slightly different, 
> since the various possible length_error exceptions already happen in 
> clearly distinguishable methods, that is basic_string::replace, 
> basic_string::_M_replace, basic_string::_S_create.

Very true.  I'm hoping to make future error messages (including what()'s from
exception) not mention the internal functions, so that the user would only
see the name that he called.  But that's definitely a longer-term project.

Thanks for catching all this, Paolo.

Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]