This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH, v3] std::thread ctor passes function pointer by reference to _M_make_shared_data.
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Chris Fairles <chris dot fairles at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 8 Feb 2009 00:23:57 -0800
- Subject: Re: [PATCH, v3] std::thread ctor passes function pointer by reference to _M_make_shared_data.
- References: <fac6bb500902072012i46fc3bd6m7a356d62ec29d739@mail.gmail.com>
> By explicitly specifying the template argument to the
> _M_make_shared_data call, pointers are passed by value and
> rvalue/lvalue-refs are still forwarded correctly.
>
> Tested x86_64, ok for trunk?
OK, thanks.
-benjamin