Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51905 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2009-03-22 15:06:56


Author: ramey
Date: 2009-03-22 15:06:55 EDT (Sun, 22 Mar 2009)
New Revision: 51905
URL: http://svn.boost.org/trac/boost/changeset/51905

Log:
fix for virtual base classes
Text files modified:
   trunk/boost/serialization/void_cast.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/serialization/void_cast.hpp
==============================================================================
--- trunk/boost/serialization/void_cast.hpp (original)
+++ trunk/boost/serialization/void_cast.hpp 2009-03-22 15:06:55 EDT (Sun, 22 Mar 2009)
@@ -167,7 +167,9 @@
     void_caster(
         & type_info_implementation<Derived>::type::get_const_instance(),
         & type_info_implementation<Base>::type::get_const_instance(),
- reinterpret_cast<unsigned long int>(
+ // note:I wanted to display from 0 here, but at least one compiler
+ // treated 0 by not shifting it at all.
+ reinterpret_cast<std::ptrdiff_t>(
             static_cast<Derived *>(
                 reinterpret_cast<Base *>(1)
             )


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