|
Boost Users : |
From: Federico J. Fernández (federico.fernandez_at_[hidden])
Date: 2007-03-22 07:59:36
Hi Boosters!
I have been trying to use those libraries together. To be concrete, I
want to have a variant of boost::statechart::event derived classes.
The problem is that when I try to compile it I receive a lot of error
messages, but the important ones say that there is no match for
"operator new".. I mean, variant is calling a prototype of operator
new that event doesn't offer.
This is the error that I get:
/usr/include/boost/variant/variant.hpp: In constructor
'boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12,
T13, T14, T15, T16, T17, T18, T19>::variant() [with T0_ [...]
/usr/include/boost/variant/variant.hpp:1174: error: no matching
function for call to 'evt_reset::operator new(unsigned int, void*)'
/usr/include/boost/statechart/event.hpp:38: note: candidates are:
static void* boost::statechart::event<MostDerived,
Allocator>::operator new(size_t) [with MostDerived = evt_reset,
Allocator = std::allocator<void>]
Any idea? I want to have a container of this "events" and don't want
to have a base class and working with virtual functions.
Thanks!
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net