Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81181 - trunk/boost/test/utils/basic_cstring
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-04 21:06:59


Author: rogeeff
Date: 2012-11-04 21:06:58 EST (Sun, 04 Nov 2012)
New Revision: 81181
URL: http://svn.boost.org/trac/boost/changeset/81181

Log:
fix for vacpp; Fixes #6594
Text files modified:
   trunk/boost/test/utils/basic_cstring/basic_cstring.hpp | 16 ++++++++--------
   1 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/boost/test/utils/basic_cstring/basic_cstring.hpp
==============================================================================
--- trunk/boost/test/utils/basic_cstring/basic_cstring.hpp (original)
+++ trunk/boost/test/utils/basic_cstring/basic_cstring.hpp 2012-11-04 21:06:58 EST (Sun, 04 Nov 2012)
@@ -91,18 +91,18 @@
     self_type& trim_left( size_type trim_size );
     self_type& trim_right( iterator it );
     self_type& trim_left( iterator it );
-#ifndef __IBMCPP__
+#if !BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(800))
     self_type& trim_left( self_type exclusions = self_type() ) ;
     self_type& trim_right( self_type exclusions = self_type() ) ;
     self_type& trim( self_type exclusions = self_type() ) ;
 #else
- // VisualAge version 6 has in this case a problem with the default arguments.
- self_type& trim_left( self_type exclusions ) ;
- self_type& trim_right( self_type exclusions ) ;
- self_type& trim( self_type exclusions ) ;
- self_type& trim_left() { trim_left( self_type() ) ; }
- self_type& trim_right() { trim_right( self_type() ) ; }
- self_type& trim() { trim( self_type() ) ; }
+ // VA C++/XL C++ v6 and v8 has in this case a problem with the default arguments.
+ self_type& trim_left( self_type exclusions );
+ self_type& trim_right( self_type exclusions );
+ self_type& trim( self_type exclusions );
+ self_type& trim_left() { return trim_left( self_type() ); }
+ self_type& trim_right() { return trim_right( self_type() ); }
+ self_type& trim() { return trim( self_type() ); }
 #endif
 
     // Assignment operators


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk