Ticket #6594: basic_cstring.hpp.patch

File basic_cstring.hpp.patch, 1.4 KB (added by hstong@…, 11 years ago)

Patch basic_cstring.hpp to fix fall-through end of function returning a value.

  • boost/test/utils/basic_cstring/basic_cstring.hpp

    old new  
    9191    self_type&      trim_left( size_type trim_size );
    9292    self_type&      trim_right( iterator it );
    9393    self_type&      trim_left( iterator it );
    94 #ifndef __IBMCPP__
     94#if !BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(800))
    9595    self_type&      trim_left( self_type exclusions = self_type() ) ;
    9696    self_type&      trim_right( self_type exclusions = self_type() ) ;
    9797    self_type&      trim( self_type exclusions = self_type() ) ;
    9898#else
    99     // VisualAge version 6 has in this case a problem with the default arguments.
     99    // VA C++/XL C++ v6 and v8 has in this case a problem with the default arguments.
    100100    self_type&      trim_left( self_type exclusions ) ;
    101101    self_type&      trim_right( self_type exclusions ) ;
    102102    self_type&      trim( self_type exclusions ) ;
    103     self_type&      trim_left() { trim_left( self_type() ) ; }
    104     self_type&      trim_right() { trim_right( self_type() ) ; }
    105     self_type&      trim() { trim( self_type() ) ; }
     103    self_type&      trim_left() { return trim_left( self_type() ) ; }
     104    self_type&      trim_right() { return trim_right( self_type() ) ; }
     105    self_type&      trim() { return trim( self_type() ) ; }
    106106#endif
    107107
    108108    // Assignment operators