Re: [PATCH] Do not copy std:call_once arguments (LWG 2442)

2016-10-12 Thread Jonathan Wakely
On 12/10/16 12:22 +0100, Jonathan Wakely wrote: This replaces the use of std::__bind_simple by direct calls to std::__invoke so that the arguments are not decay-copied. * doc/xml/manual/intro.xml: Document LWG 2442 status. * include/std/mutex [_GLIBCXX_HAVE_TLS] (__once_call_impl

[PATCH] Do not copy std:call_once arguments (LWG 2442)

2016-10-12 Thread Jonathan Wakely
This replaces the use of std::__bind_simple by direct calls to std::__invoke so that the arguments are not decay-copied. * doc/xml/manual/intro.xml: Document LWG 2442 status. * include/std/mutex [_GLIBCXX_HAVE_TLS] (__once_call_impl): Remove. [_GLIBCXX_HAVE_TLS] (_Once_cal