5 Aug
2010
5 Aug
'10
5:46 p.m.
Hello, When I define optional<my_event>, I get a warning (MSVC10): warning C4291: 'void *boost::statechart::event<MostDerived>::operator new(size_t,void *)' : no matching operator delete found; memory will not be freed if initialization throws an exception In class statechart::event I see 2 overloads of operator new: void * operator new( std::size_t size ) void * operator new( std::size_t, void * p ) But only 1 operator delete: void operator delete( void * pEvent ) i.e., no placement delete. Is this intentional? Thanks.