[v3] implement LWG 2056

Submitted by Jonathan Wakely on Dec. 23, 2011, 5:06 p.m.

Details

Message ID CAH6eHdS-yjdazYm6srmn_ibKN87uWaR8OQbGx7uLsAVwGiO2xw@mail.gmail.com
State New
Headers show

Commit Message

Jonathan Wakely Dec. 23, 2011, 5:06 p.m.
PR libstdc++/49204
        * include/std/future (future_errc): Implement LWG 2056.

tested x86_84-linux, committed to trunk

Patch hide | download patch | download mbox

Index: include/std/future
===================================================================
--- include/std/future	(revision 182657)
+++ include/std/future	(revision 182658)
@@ -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.