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

Modified Files:
        rtti_policy.hpp 
Log Message:
Made event<> copy-assignable.

Index: rtti_policy.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/statechart/detail/rtti_policy.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- rtti_policy.hpp     3 Dec 2006 14:46:31 -0000       1.15
+++ rtti_policy.hpp     31 Mar 2007 10:50:53 -0000      1.16
@@ -86,7 +86,7 @@
   typedef bool id_provider_type; // dummy
   #else
   typedef const void * id_type;
-  typedef const id_provider & id_provider_type;
+  typedef const id_provider * id_provider_type;
   #endif
 
   ////////////////////////////////////////////////////////////////////////////
@@ -102,7 +102,7 @@
         #ifdef BOOST_STATECHART_USE_NATIVE_RTTI
         return id_type( typeid( *this ) );
         #else
-        return &idProvider_;
+        return idProvider_;
         #endif
       }
 
@@ -111,9 +111,9 @@
       const CustomId * custom_dynamic_type_ptr() const
       {
         BOOST_ASSERT(
-          ( idProvider_.pCustomId_ == 0 ) ||
-          ( *idProvider_.pCustomIdType_ == typeid( CustomId ) ) );
-        return static_cast< const CustomId * >( idProvider_.pCustomId_ );
+          ( idProvider_->pCustomId_ == 0 ) ||
+          ( *idProvider_->pCustomIdType_ == typeid( CustomId ) ) );
+        return static_cast< const CustomId * >( idProvider_->pCustomId_ );
       }
       #endif
 
@@ -201,7 +201,7 @@
       #ifdef BOOST_STATECHART_USE_NATIVE_RTTI
       rtti_derived_type() : Base( false ) {}
       #else
-      rtti_derived_type() : Base( id_holder< MostDerived >::idProvider_ ) {}
+      rtti_derived_type() : Base( &id_holder< MostDerived >::idProvider_ ) {}
       #endif
   };
 };


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to