|
Boost : |
From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-06-01 02:16:20
Toon Knapen wrote:
>
> I stumble on another problem when trying to compile the test library
> with IBM/VisualAge (vacpp).
>
> 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
> } ;
On second thought, I would like to change the above signature into:
self_type& trim_left(const self_type& exclusions = self_type() ); // line 97
Taking the argument by const-reference does not pose a problem for the
vacpp compiler and AFAICT it's even better to take a const-reference as
copying the argument by value.
toon
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk