Re: [sigc] C++0x lambdas

2012-01-05 Thread Stephan Beal
On Thu, Jan 5, 2012 at 7:58 PM, Rui Maciel wrote: > http://gcc.gnu.org/ml/libstdc+**+/2000-11/msg8.html > In the off chance that this helps... http://sourceforge.net/apps/mediawiki/predef/index.php?title=Main_Page http://sourceforge.net

Re: [sigc] C++0x lambdas

2012-01-05 Thread Rui Maciel
On 01/05/2012 04:05 PM, Chow Loong Jin wrote: The only macro I can find to do with detecting C++0x is __GXX_EXPERIMENTAL_CXX0X__ which is probably not portable. __cplusplus is supposed to be defined to a value greater than 199711L, but on my system it seems to be defined without a value, defaulti

Re: [sigc] C++0x lambdas

2012-01-05 Thread Rui Maciel
On 01/05/2012 04:05 PM, Chow Loong Jin wrote: The only macro I can find to do with detecting C++0x is __GXX_EXPERIMENTAL_CXX0X__ which is probably not portable. __cplusplus is supposed to be defined to a value greater than 199711L, but on my system it seems to be defined without a value, defaulti

[sigc] sigc++ error during GTKmm cross-compilation

2012-01-05 Thread da Eatel
Hi, I wrote simple GTKmm program from documentation example: /#include int main(int argc, char *argv[]){ Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::Main::run(window); return 0; }/ and then I try to cross-compile for Windows it using mingw cross-compiler, but it fail

Re: [sigc] C++0x lambdas

2012-01-05 Thread Chow Loong Jin
On 05/01/2012 20:59, Murray Cumming wrote: > [...] > Is this something that we should add to libsigc++? If so, it would be > great to have a patch, with a test case too. I think that would be great if possible, but we'll need to surround this block with #ifdefs, as it'll only work in C++0x. The o

Re: [sigc] C++0x lambdas

2012-01-05 Thread Murray Cumming
On Thu, 2012-01-05 at 16:41 +0800, Chow Loong Jin wrote: > On 30/08/2011 21:16, Jakub Łukomski wrote: > > Hello. Is there a way to use value returning C++0x lambdas with libsigc++? > > > > Functions not returning values work fine: > > > > sigc::slot slot1 = [] () { }; > > sigc::slot slo

Re: [sigc] C++0x lambdas

2012-01-05 Thread Chow Loong Jin
On 30/08/2011 21:16, Jakub Łukomski wrote: > Hello. Is there a way to use value returning C++0x lambdas with libsigc++? > > Functions not returning values work fine: > > sigc::slot slot1 = [] () { }; > sigc::slot slot2 = [] (int) { }; > > no compilation problems. However when a ret