OSDN Git Service

Backport from mainline
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Sep 2013 19:04:04 +0000 (19:04 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Sep 2013 19:04:04 +0000 (19:04 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@202956 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2049b68..19707c2 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 98c7b84..150c1af 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))