[sigc] Forming reference to reference



Hi,
I've recently updated gnome 2.10 to 2.12, and my small application, which was using old gtkmm, now not working.

Thanks to sigc in this respect.

I've this function call for CellRendererText,
==================
signal_edited ().connect (sigc::bind<Gtk::Widget&>
           (sigc::mem_fun (*this, &CXCellRendererText::editing_over), widget)) ;
===================
where widget is Gtk::Widget&.

The compile error i'm getting is


sigc++-2.0/sigc++/adaptors/bound_argument.h:57: error: forming reference to reference type `Gtk::Widget&'
sigc++-2.0/sigc++/adaptors/bound_argument.h:64: error: forming reference to reference type `Gtk::Widget&'
sigc++-2.0/sigc++/adaptors/bound_argument.h:70: error: forming reference to reference type `Gtk::Widget&'

At some other place i've used sigc::bind with const int& and got the same error. But at that place i've replaced const int&  with const int, I cannot do the same here. When i replace Gtk::Widget& with Gtk::Widget, I'm getting an error saying that

===================
gtkmm-2.4/gtkmm/widget.h:305: error: ‘Gtk::Widget::Widget(const Gtk::Widget&)’ is private
===================

Obviously, because the copy constructor has been made private.

Any body have this kind of problem??

I looked at libsigc list, where a similar question has been put (in the month of june), but no answer to that..

Any help would be greatly appreciated.

Thanks in advance.
Surya



--
~/.signature.html
Education is the ability to listen to almost anything without losing your temper or your self-confidence.
 -- Robert Frost

Surya Kiran Gullapalli,         Ph. (OFF) (020) 56522624
Sr. Development Engineer,      
Fluent India Pvt. Ltd.,
Pune, India















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