]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR libstdc++/55861 ([C++11] `std::shared_future::get' is not const-quali...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Thu, 26 Sep 2013 19:04:04 +0000 (19:04 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Sep 2013 19:04:04 +0000 (20:04 +0100)
Backport from mainline

2013-01-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/55861
* include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
Fix return type.

From-SVN: r202956

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

index 2049b68cec0ccdc82d6ed8757ac187c4246b618a..19707c2c78396754b5370f2d1a76c661e5b4ef3f 100644 (file)
@@ -1,3 +1,13 @@
+2013-09-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       Backport from mainline
+
+       2013-01-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/55861
+       * include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
+       Fix return type.
+
 2013-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/58302
index 98c7b843812897c7b8e031ae1b75fbe90bf9dc60..150c1afbc4abf83e435634c6d0643eba385a68f6 100644 (file)
@@ -1,6 +1,6 @@
 // <future> -*- C++ -*-
 
-// Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -456,7 +456,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       __setter(promise<void>* __prom);
 
       template<typename _Tp>
-        static bool
+        static void
         _S_check(const shared_ptr<_Tp>& __p)
         {
           if (!static_cast<bool>(__p))