Added simple_state<>::operator new & simple_state<>::operator delete forwarding to the allocator passed to state_machine.

[SVN r30572]
This commit is contained in:
Andreas Huber
2005-08-13 23:42:30 +00:00
parent 6cfcbf422b
commit afa1295bc1
3 changed files with 100 additions and 1 deletions

View File

@@ -267,6 +267,18 @@ struct BitState : sc::simple_state< BitState< stateNo >, BitMachine >,
IDisplay
#endif
{
#ifdef CUSTOMIZE_MEMORY_MANAGEMENT
static void * operator new( size_t size )
{
return UniqueObject< BitState< stateNo > >::operator new( size );
}
static void operator delete( void * p, size_t size )
{
UniqueObject< BitState< stateNo > >::operator delete( p, size );
}
#endif
typedef typename FlipTransitionList< stateNo >::type reactions;
virtual void Display() const