This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] libstdc++/64168 fix return statement
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Dec 2014 16:10:19 +0000
- Subject: [patch] libstdc++/64168 fix return statement
- Authentication-results: sourceware.org; auth=none
I've really got to start testing with -Wsystem-headers so I don't do
silly things like this.
Committed as obvious.
commit 88abdc37b00dbe64099f78a31163a299a023ec03
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 3 16:08:08 2014 +0000
PR libstdc++/64168
* include/std/future (_Deferred_state::_M_has_deferred): Fix return.
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index 60c2e4e..157ceb3 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -1606,7 +1606,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Caller should check whether the state is ready first, because this
// function will return true even after the deferred function has run.
- virtual bool _M_has_deferred() const { true; }
+ virtual bool _M_has_deferred() const { return true; }
};
// Common functionality hoisted out of the _Async_state_impl template.