OSDN Git Service

PR libstdc++/49204
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 16:10:48 +0000 (16:10 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 16:10:48 +0000 (16:10 +0000)
* include/std/future (future_errc): Implement LWG 2056.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182658 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a8b31b8..728655f 100644 (file)
@@ -1,5 +1,10 @@
 2011-12-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
+       PR libstdc++/49204
+       * include/std/future (future_errc): Implement LWG 2056.
+
+2011-12-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
        * include/bits/regex.h (match_results::size_type): Use
        allocator_traits.
 
index 040f573..d3180e9 100644 (file)
@@ -60,10 +60,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   /// Error code for futures
   enum class future_errc
   {
-    broken_promise,
-    future_already_retrieved,
+    future_already_retrieved = 1,
     promise_already_satisfied,
-    no_state
+    no_state,
+    broken_promise
   };
 
   /// Specialization.