Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2004-05-28 07:33:43


Hi,

I haven't been following this thread, however I see, that you
are proposing a functionality, that overlap with the string algorithm
library.

For instance, trim functionality is already there, and if basic_cstring
can provide Collection/Range compatible interface, it will work straight away.

Have a look into boost/algorithm/string

Regards,

Pavol

On Fri, May 28, 2004 at 12:39:35PM +0100, Jonathan Wakely wrote:
> On Fri, May 28, 2004 at 12:57:56PM +0200, Toon Knapen wrote:
>
> > Apparantly vacpp has a problem on lines 97,98 and 99 of
> > boost/test/detail/basic_cstring/basic_cstring.hpp.
> >
> > Basically the problem is this: this file declares a class
> >
> > template < class CharT >
> > class basic_string
> > {
> > public:
> > typedef basic_string<CharT> self_type ;
> >
> > self_type& trim_left(self_type exclusions = self_type() ) ; // line 97
> > } ;
>
> How about overloading the function to remove the default arg?
>
> self_type& trim_left(self_type exclusions);
>
> self_type& trim_left() { return trim_left(self_type()); }
>
> jon
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk