diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-09-14 18:20:10 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-09-14 18:20:10 +0000 |
commit | 3b2d7ee18c5d22b0859bfde0688a1c4957af1bfc (patch) | |
tree | 2c5d9cec74663f0d7378a7203c21ae4757b47986 /libcxx/include/future | |
parent | 401aebab934b54ecf596c8fe628e0e09cf095c97 (diff) | |
download | bcm5719-llvm-3b2d7ee18c5d22b0859bfde0688a1c4957af1bfc.tar.gz bcm5719-llvm-3b2d7ee18c5d22b0859bfde0688a1c4957af1bfc.zip |
Marshall Clow: LWG Issue 2056: future_errc enums start with value 0 (invalid value for broken_promise).
llvm-svn: 190756
Diffstat (limited to 'libcxx/include/future')
-rw-r--r-- | libcxx/include/future | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/include/future b/libcxx/include/future index b249464e431..9c4c70dfb2f 100644 --- a/libcxx/include/future +++ b/libcxx/include/future @@ -19,10 +19,10 @@ namespace std enum class future_errc { - broken_promise, - future_already_retrieved, + future_already_retrieved = 1, promise_already_satisfied, - no_state + no_state, + broken_promise }; enum class launch @@ -379,10 +379,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD //enum class future_errc _LIBCPP_DECLARE_STRONG_ENUM(future_errc) { - broken_promise, - future_already_retrieved, + future_already_retrieved = 1, promise_already_satisfied, - no_state + no_state, + broken_promise }; _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(future_errc) |