
Bruno MartÃnez
On Thu, 15 Sep 2005 10:47:41 -0300, Simon Carter
wrote: I would like to do the same thing - boost::bind can be used to bind an instance of an object, a member function pointer _and_ any parameters required by that function.
This leads to a really useful implementation of the command pattern - you can build a list of these functors which constitute a composite command, and to serialise the whole lot - or part - would be invaluable in all sorts of situations including tracking how much of the composite command had actually been implemented.
Maybe I should generalise and boostify my implementation. Any interest?
Yes. Could you explain it's principles? I've been trying to solve the same problem for some time now.
Sorry, perhaps I wasn't clear enough - I haven't solved the general problem of the serialisation of bind or function objects using boost at all - though I would like to do the same thing. The implementation I have is too specialised on persisting just the bits I need, and uses a our own persistence mechanism. I'm afraid it wouldn't be much of a starting point for a general solution, though I too would be very keen to see one.