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

Modified Files:
        event.hpp 
Log Message:
Added placement new overload.

Index: event.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/statechart/event.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- event.hpp   3 Dec 2006 14:46:29 -0000       1.16
+++ event.hpp   26 Mar 2007 19:30:42 -0000      1.17
@@ -14,7 +14,7 @@
 
 #include <boost/cast.hpp> // boost::polymorphic_downcast
 
-#include <memory>   // std::allocator
+#include <memory> // std::allocator
 
 
 
@@ -40,6 +40,11 @@
       return detail::allocate< MostDerived, Allocator >( size );
     }
 
+    void * operator new( std::size_t, void * p )
+    {
+      return p;
+    }
+
     void operator delete( void * pEvent )
     {
       detail::deallocate< MostDerived, Allocator >( pEvent );


-------------------------------------------------------------------------
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