Peter Basista wrote: > > int bar (gslot & gs) { // The argument is a reference > std::cout << "Executing bar." << std::endl; > gs(0, 1.0, 'c', "hello"); > return (0); > } > > [...] > > bar(sigc::hide(sigc::mem_fun(ec, &ExampleClass::f))); > // <-- COMPILE ERROR
C++ does not allow anonymous objects to be passed where non-const references are expected. Specifically, non-const references must be lvalues. http://groups.google.com/group/comp.lang.c++/browse_thread/thread/814a071947c5b675/be95a615245cdbdf?#be95a615245cdbdf - James _______________________________________________ libsigc-list mailing list libsigc-list@gnome.org http://mail.gnome.org/mailman/listinfo/libsigc-list