RE: [sigc] slots without functors
- From: Foster Gareth <gareth foster siemens com>
- To: paul linuxaudiosystems com, libsigc-list gnome org
- Cc:
- Subject: RE: [sigc] slots without functors
- Date: Tue, 27 Sep 2005 10:10:21 +0100
> 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]