Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2004-05-28 06:39:35


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


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