Re: [sigc] Functor not resolving between overloaded methods with different slot types
- From: Mike Fleetwood <mike fleetwood googlemail com>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Libsigc++ <libsigc-list gnome org>
- Subject: Re: [sigc] Functor not resolving between overloaded methods with different slot types
- Date: Sun, 7 Feb 2016 09:46:41 +0000
Thank you Paul,
This was just the nudge in the right direction I needed. Creating an
intermediate variable of the required slot type was what was needed so
the compiler could choose between the overloaded functions. For my test
case it looks like this:
sigc::slot<void, Glib::ustring *> activity_slot =
sigc::mem_fun(*this, &Activity::callback);
foo(activity_slot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]