Re: [sigc] sigc++ & C++0x



This is a reply to a message written 14 months ago.
http://mail.gnome.org/archives/libsigc-list/2011-July/msg00000.html

2011-07-08 18:15, Robert Hildebrandt skrev:
Hi,

I am trying to combine sigc++ with C++0x Lambdas, but when using lambdas
returning a value, this desn't seem to work:
Now it works in the new libsigc++ release 2.2.11, provided you use the new macro SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE. See the documentation of that macro at http://developer.gnome.org/libsigc++/stable/group__sigcfunctors.html.

If you are eager to use it, you can get the source code from http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/ or the Git repository http://git.gnome.org/browse/libsigc++2/.
   //sigc::slot<bool, int> try_fun = mem_fun(fun_is_42,
&std::function<bool(int)>::operator());  // also don't seem to work

This works if you replace mem_fun by sigc::mem_fun.

Kjell


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