future (packaged_task(allocator_arg_t, const A&, F&&): Remove explicit (LWG 2407).
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 May 2015 13:54:40 +0000 (14:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 May 2015 13:54:40 +0000 (14:54 +0100)
* include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
Remove explicit (LWG 2407).

From-SVN: r223161

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future

index 3d20ad4e316d1abcaf26a3e29b3651ed46971d5c..34bda015a1ee15ccda14ea161e790f6ff0cb8804 100644 (file)
@@ -1,5 +1,8 @@
 2015-05-13  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
+       Remove explicit (LWG 2407).
+
        * include/bits/basic_string.h (basic_string::basic_string()): Make
        noexcept conditional on allocator (LWG 2455).
 
index a67db98853f5afb45b0ac593d80025fad09c0222..c4baf90622aa1e996726ae7593eee70a6829f595 100644 (file)
@@ -1489,9 +1489,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       // _GLIBCXX_RESOLVE_LIB_DEFECTS
       // 2097.  packaged_task constructors should be constrained
+      // 2407. [this constructor should not be] explicit
       template<typename _Fn, typename _Alloc, typename = typename
               __constrain_pkgdtask<packaged_task, _Fn>::__type>
-       explicit
        packaged_task(allocator_arg_t, const _Alloc& __a, _Fn&& __fn)
        : _M_state(__create_task_state<_Res(_ArgTypes...)>(
                    std::forward<_Fn>(__fn), __a))