incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: 21.string.rfind.cpp test fail reason
Date Tue, 03 Jul 2007 12:56:04 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor
> Sent: Tuesday, July 03, 2007 7:02 AM
> To: stdcxx-dev@incubator.apache.org
> Subject: Re: 21.string.rfind.cpp test fail reason
> 
> >   The test deals with exceptions (the all exceptions are catched).
> > I mean that concrete test line not expected any exception 
> and issues 
> > rw_error() when length_error() catched.
> 
> I don't see any calls to rw_error() in 21.string.rfind.cpp 
> but you probably meant rw_assert().

  Yes, I mean rw_assert(). Sorry.  

> rfind() is not required 
> to and shouldn't throw under any conditions. There's no 
> efficient way for all the overloads of rfind() to throw 
> consistently under the same conditions so it should just 
> return npos instead. We need a Jira issue to track this change.

  http://issues.apache.org/jira/browse/STDCXX-466

Farid.

Mime
View raw message