mirror of
https://github.com/boostorg/statechart.git
synced 2026-01-21 05:22:12 +00:00
Added simple_state<>::operator new & simple_state<>::operator delete forwarding to the allocator passed to state_machine.
[SVN r30572]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user