]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/src/c++11/future.cc
PR libstdc++/60936 reduce coupling between objects in libstdc++.a
[thirdparty/gcc.git] / libstdc++-v3 / src / c++11 / future.cc
index e138567abe12855872cf55fc3970d0a82ea95d70..d25ea4a59dfeacb46009f1328a0c3a100695a2fe 100644 (file)
@@ -23,6 +23,7 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <future>
+#include <bits/functexcept.h>
 
 namespace
 {
@@ -70,6 +71,10 @@ namespace std _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
+  void
+  __throw_future_error(int __i __attribute__((unused)))
+  { _GLIBCXX_THROW_OR_ABORT(future_error(make_error_code(future_errc(__i)))); }
+
   const error_category& future_category() noexcept
   { return __future_category_instance(); }