Explicitly convert int to future_errc. Fixes http://llvm.org/bugs/show_bug.cgi?id=11428
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@149630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1dd5ccf06c
commit
b1bc0c4975
@ -29,7 +29,7 @@ __future_error_category::name() const _NOEXCEPT
|
||||
string
|
||||
__future_error_category::message(int ev) const
|
||||
{
|
||||
switch (ev)
|
||||
switch (static_cast<future_errc>(ev))
|
||||
{
|
||||
case future_errc::broken_promise:
|
||||
return string("The associated promise has been destructed prior "
|
||||
|
Loading…
x
Reference in New Issue
Block a user