Hi Bardur Bardur Arantsson wrote:
Hi all,
I'm trying to compile the StopWatch.cpp example on SuSE10 and I'm getting a whole bunch of errors (or at least what gcc thinks are errors): [error snipped]
Thanks for the report! This problem has been reported before (by private email). All I know for sure is that the same code works fine with GCC3.4.2 (and other compilers). The only thread you'll find by googling for "__gnu_cxx::new_allocator<_Tp>::destroy(_Tp*)" suggests that the GCC std allocator was changed in 4.0. Maybe Boost.Statechart makes use of a corner-case that is not covered in GCC4.0 allocator regression tests. Unfortunately I don't currently have the time to track this down. For now, I can only suggest to replace your copy of statechart.hpp with the one attached. It partially disables state_machine custom allocator support. Please let me know whether that works for you. HTH & Regards, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.