2010-08-25 19:32:05 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2010-11-16 23:09:02 +01:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-08-25 19:32:05 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <future>
|
|
|
|
|
|
|
|
// class error_condition
|
|
|
|
|
|
|
|
// error_condition make_error_condition(future_errc e);
|
|
|
|
|
|
|
|
#include <future>
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const std::error_condition ec1 =
|
|
|
|
std::make_error_condition(std::future_errc::future_already_retrieved);
|
|
|
|
assert(ec1.value() ==
|
|
|
|
static_cast<int>(std::future_errc::future_already_retrieved));
|
|
|
|
assert(ec1.category() == std::future_category());
|
|
|
|
}
|
|
|
|
}
|