From patchwork Mon Dec 17 21:30:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3] remove __async_sfinae_helper Date: Mon, 17 Dec 2012 11:30:51 -0000 From: Jonathan Wakely X-Patchwork-Id: 206999 Message-Id: To: "libstdc++" , gcc-patches With the implementation of N3436 we no longer need the __async_sfinae_helper, as result_of does the same job on its own. * include/std/future (__async_sfinae_helper): Remove. Tested x86_64-linux, committed to trunk. commit 797f96cc81e09197bc377206319667c579ecb81b Author: Jonathan Wakely Date: Mon Dec 17 21:00:57 2012 +0000 * include/std/future (__async_sfinae_helper): Remove. diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future index c24ab77..2ecf438 100644 --- a/libstdc++-v3/include/std/future +++ b/libstdc++-v3/include/std/future @@ -170,19 +170,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION future::type> async(launch __policy, _Fn&& __fn, _Args&&... __args); - template - struct __async_sfinae_helper - { - typedef future::type> type; - }; - template - struct __async_sfinae_helper - { }; - - template - typename - __async_sfinae_helper::type, _Fn, _Args...>::type + future::type> async(_Fn&& __fn, _Args&&... __args); #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) \ @@ -1509,8 +1498,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// async, potential overload template - inline typename - __async_sfinae_helper::type, _Fn, _Args...>::type + inline future::type> async(_Fn&& __fn, _Args&&... __args) { return async(launch::async|launch::deferred, std::forward<_Fn>(__fn),