Re: [gtkmm] Still on threads
- From: Enrico Costanza <ec142 york ac uk>
- To: Murray Cumming Comneon com
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Still on threads
- Date: Fri, 28 Feb 2003 17:23:29 +0000
I am trying to use:
Glib::Thread::create( SigC::slot_class(*this,
&MyCameraFramework::soundCallback), false);
(as in the example program dispatcher.cc) but the compiler complains:
no matching function for call to `Glib::Thread::create
(SigC::Slot0, bool)'
/usr/include/gtkmm-2.0/glibmm/thread.h:222: candidates are:
static Glib::Thread *Glib::Thread::create (const SigC::Slot0 &, bool)
You generally can't use a temporary object where a const object& is
required. Try using SigC::slot() or putting the SigC::slot_class()
instantiation (I assume slot_class is a class name rather than a function)
on the previous line.
I have noticed that I was using the wrong return type (bool rather than
void).
Now it compiles both with slot and slot_class()
(however, I still do not understand the compiler error message..)
Thanks,
Enrico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]