Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 13:20 +0100, Jonathan Wakely wrote: On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fp

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template _Bind_simple_helper>:

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Thomas Schwinge
Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template _Bind_simple_helper>::__type __bind_simple(void (thread::*&&)(), ref

[PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
Some time ago I added __bind_simple, which is a simpler version of std::bind that doesn't support placeholders and nested bind expressions. It's only needed by a few concurrency components that do INVOKE(DECAY_COPY(f), DECAY_COPY(args)...) but those conponents have to include the whole of to get