Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-07-31 18:07:18


In another painfully hunt to fix the problems with the seriazation lib
issues in CW8... I tracked the problem down to another instance of:
static_cast<const&>(x) where x is a template with template ctors. The
problem was in iterator_facade, and not directly in the serialization
lib which made it even harder to find :-(

Anyway, I applied this change (figured since this is a known problem by
now with an easy portable solution it would not be a problem)...

===================================================================
RCS file: /cvsroot/boost/boost/boost/iterator/iterator_facade.hpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- iterator_facade.hpp 31 Jul 2004 18:10:00 -0000 1.26
+++ iterator_facade.hpp 31 Jul 2004 22:56:49 -0000 1.27
@@ -814,8 +814,8 @@
            is_interoperable< Derived1, Derived2 >::value
           \
        ));
           \
        return_prefix iterator_core_access::base_op(
           \
- static_cast<Derived1 const&>(lhs)
          \
- , static_cast<Derived2 const&>(rhs)
          \
+ *static_cast<Derived1 const*>(&lhs)
          \
+ , *static_cast<Derived2 const*>(&rhs)
          \
          , BOOST_ITERATOR_CONVERTIBLE(Derived2,Derived1)
           \
        );
           \
    }
===================================================================

After that the serialization lib builds, and tests run. Of course not
all tests pass ;-) VC7.1 and Mingw behave as before also.

PS. There was one other minor change to the
libs/serialization/test/Jamfile to account for locale requirement.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

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