summaryrefslogtreecommitdiffstats
path: root/libcxx/test/thread/futures/futures.overview/future_status.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/thread/futures/futures.overview/future_status.pass.cpp')
-rw-r--r--libcxx/test/thread/futures/futures.overview/future_status.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/thread/futures/futures.overview/future_status.pass.cpp b/libcxx/test/thread/futures/futures.overview/future_status.pass.cpp
index 11fbe219276..0b6d32ca4c7 100644
--- a/libcxx/test/thread/futures/futures.overview/future_status.pass.cpp
+++ b/libcxx/test/thread/futures/futures.overview/future_status.pass.cpp
@@ -20,7 +20,7 @@
int main()
{
- static_assert(std::future_status::ready == 0, "");
- static_assert(std::future_status::timeout == 1, "");
- static_assert(std::future_status::deferred == 2, "");
+ static_assert(static_cast<int>(std::future_status::ready) == 0, "");
+ static_assert(static_cast<int>(std::future_status::timeout) == 1, "");
+ static_assert(static_cast<int>(std::future_status::deferred) == 2, "");
}
OpenPOWER on IntegriCloud