Update of /cvsroot/boost/boost/boost/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2275/boost/detail

Modified Files:
        sp_counted_impl.hpp 
Log Message:
sp_unary_addr_test added (reported by Scott French)

Index: sp_counted_impl.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/detail/sp_counted_impl.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sp_counted_impl.hpp 11 Nov 2005 21:06:08 -0000      1.4
+++ sp_counted_impl.hpp 4 Jul 2007 16:35:44 -0000       1.5
@@ -147,7 +147,7 @@
 
     virtual void * get_deleter( std::type_info const & ti )
     {
-        return ti == typeid(D)? &del: 0;
+        return ti == typeid(D)? &reinterpret_cast<char&>( del ): 0;
     }
 
 #if defined(BOOST_SP_USE_STD_ALLOCATOR)
@@ -217,7 +217,7 @@
 
     virtual void * get_deleter( std::type_info const & ti )
     {
-        return ti == typeid( D )? &d_: 0;
+        return ti == typeid( D )? &reinterpret_cast<char&>( d_ ): 0;
     }
 };
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to