"Conoscenza Silente" <abruzzoforteegentile@gmail.com> wrote in message news:bf2c6e390911260025i299ba4e3r10c5e4e4b562fb1d@mail.gmail.com... [snip]
I would like to fasten up the whole process; let's say that I would like to avoid the creation/destruction of the class each time using object already allocated in memory that are deleted only at the exit of the application. Is this a good way in your opinion ?
You might want to read the Performance section: <http://www.boost.org/libs/statechart/doc/performance.html> Bottom line: Unless you're writing a parser with Boost.Statechart, state construction & destruction usually doesn't constitute a perf bottleneck in an application. For parsing there are much more suitable tools (Spirit, Regex, etc.). HTH, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.