Boost logo

Boost-Commit :

From: Boris.Gubenko_at_[hidden]
Date: 2007-12-14 23:16:05


Author: bgubenko
Date: 2007-12-14 23:16:05 EST (Fri, 14 Dec 2007)
New Revision: 42065
URL: http://svn.boost.org/trac/boost/changeset/42065

Log:
don't use identifires R1 and R2: some HP-UX headers define them as macros
Text files modified:
   trunk/boost/test/test_tools.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/test/test_tools.hpp
==============================================================================
--- trunk/boost/test/test_tools.hpp (original)
+++ trunk/boost/test/test_tools.hpp 2007-12-14 23:16:05 EST (Fri, 14 Dec 2007)
@@ -651,13 +651,13 @@
     std::size_t left_bit_size = sizeof(Left)*CHAR_BIT;
     std::size_t right_bit_size = sizeof(Right)*CHAR_BIT;
 
- static Left const L1( 1 );
- static Right const R1( 1 );
+ static Left const leftOne( 1 );
+ static Right const rightOne( 1 );
 
     std::size_t total_bits = left_bit_size < right_bit_size ? left_bit_size : right_bit_size;
 
     for( std::size_t counter = 0; counter < total_bits; ++counter ) {
- if( ( left & ( L1 << counter ) ) != ( right & ( R1 << counter ) ) ) {
+ if( ( left & ( leftOne << counter ) ) != ( right & ( rightOne << counter ) ) ) {
             res = false;
             res.message() << "\nMismatch in a position " << counter;
         }


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