RE: [sigc] slots without functors



> is fine, but
>  
> 	UndoAction something_to_undo;
> 
> 	something_to_undo = mem_fun (*object, &Object::method);
> 
> is not, because something_to_undo has no zero-argument constructor.
> 

What about storing UndoAction * ? Say if you had a list of undo actions ...

  std::list<UndoAction *> ls_p_undo_actions;

You could then new/delete them as and when?

Gaz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]