[sigc] References and sigc::bind
- From: Scott Robert Ladd <gnome coyotegulch com>
- To: libsigc-list gnome org
- Subject: [sigc] References and sigc::bind
- Date: Sun, 05 Jun 2005 10:41:27 -0400
A recent update to libsigc++ 2.0.12 has resulted in compile-time errors
in previously-working code. Specifically, the following line:
signal_report.connect(sigc::bind<string &>(sigc::mem_fun(*window,
&main_window::catch_report), text_ref));
Generates the following errors:
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h: In
instantiation of `sigc::bound_argument<std::string&>':
/usr/include/sigc++-2.0/sigc++/adaptors/bind.h:1263: instantiated from
`sigc::bind_functor<-0x00000000000000001, sigc::bound_mem_functor1<void,
main_window, std::string&>, std::string&, sigc::nil, sigc::nil,
sigc::nil, sigc::nil, sigc::nil, sigc::nil>'
main_window.cc:31: instantiated from here
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h:57: error:
forming reference to reference type `std::string&'
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h:64: error:
forming reference to reference type `std::string&'
/usr/include/sigc++-2.0/sigc++/adaptors/bound_argument.h:70: error:
forming reference to reference type `std::string&'
I've searcg Google and other resources, and suspect that sigc::ref may
provide a solution, but I can't find any significant documentation on it.
Any help is appreciated.
..Scott
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]