Home | History | Annotate | Download | only in futures.overview
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <future>
     11 
     12 // enum class future_errc
     13 // {
     14 //     future_already_retrieved = 1,
     15 //     promise_already_satisfied,
     16 //     no_state
     17 //     broken_promise,
     18 // };
     19 
     20 #include <future>
     21 
     22 int main()
     23 {
     24     static_assert(static_cast<int>(std::future_errc::future_already_retrieved) == 1, "");
     25     static_assert(static_cast<int>(std::future_errc::promise_already_satisfied) == 2, "");
     26     static_assert(static_cast<int>(std::future_errc::no_state) == 3, "");
     27     static_assert(static_cast<int>(std::future_errc::broken_promise) == 4, "");
     28 }
     29