From f6341d8d09dad4a8e2b3176c65e60aed3e1213e4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 5 May 2015 02:56:47 +0100 Subject: [PATCH] re PR libstdc++/51617 ([C++0x] async(f) isn't.) PR libstdc++/51617 * include/std/future (async): Change default policy to launch::async. From-SVN: r222793 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/std/future | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f04b97a4f5f..20e0b693bd8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2015-05-02 Jonathan Wakely + PR libstdc++/51617 + * include/std/future (async): Change default policy to launch::async. + * include/experimental/any (any::_Storage): Fix alignment of buffer. (any::_Internal): Check alignment of type. * testsuite/experimental/any/cons/aligned.cc: New. diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future index fc3f8162ae6..a67db98853f 100644 --- a/libstdc++-v3/include/std/future +++ b/libstdc++-v3/include/std/future @@ -1704,7 +1704,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { typedef typename result_of<_Fn(_Args...)>::type result_type; std::shared_ptr<__future_base::_State_base> __state; - if ((__policy & (launch::async|launch::deferred)) == launch::async) + if ((__policy & launch::async) == launch::async) { __state = __future_base::_S_make_async_state(std::__bind_simple( std::forward<_Fn>(__fn), std::forward<_Args>(__args)...)); -- 2.30.2