Explicitly convert int to future_errc. Fixes http://llvm.org/bugs/show_bug.cgi?id=11428
llvm-svn: 149630
This commit is contained in:
parent
fd72fbef41
commit
be745c8cce
|
@ -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…
Reference in New Issue