SigC::bind - binding reference arguments?



Hi,


This is not urgent as I have a work around,
but I'd still like to know how to do this properly...


Trying to bind a Gtk::Menu reference as an argument:

        instanceA.my_signal_changed.connect( SigC::bind<Gtk::Menu&>(
SigC::slot(instanceA, &ClassA::fill_menu), m_Menu) );

Produces the following error:

        /opt/gnome/include/sigc++-1.2/sigc++/bind.h:116: error:
destructor name `~
           Gtk::Menu&' does not match type `Gtk::Menu' of expression
        make: *** [mainwindow.o] Error 1

However if the Gtk::Menu& argument is changed for Gtk::Menu* (in the
bind<template> and fill_menu definition) everything compiles and runs fine.


Can anyone spot what I'm doing wrong?


thanks,
C.
begin:vcard
fn:Caspar MacRae
n:MacRae;Caspar
email;internet:caspar earcam co uk
x-mozilla-html:TRUE
version:2.1
end:vcard



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