[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libsigc-list
Subject:    Re: [sigc] sigc++ & C++0x
From:       Kjell Ahlstedt <kjell.ahlstedt () bredband ! net>
Date:       2012-09-26 7:59:54
Message-ID: 5062B5FA.3090505 () bredband ! net
[Download RAW message or body]

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
_______________________________________________
libsigc-list mailing list
libsigc-list@gnome.org
https://mail.gnome.org/mailman/listinfo/libsigc-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic