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:
@@ -29,7 +29,7 @@ __future_error_category::name() const _NOEXCEPT
|
|||||||
string
|
string
|
||||||
__future_error_category::message(int ev) const
|
__future_error_category::message(int ev) const
|
||||||
{
|
{
|
||||||
switch (ev)
|
switch (static_cast<future_errc>(ev))
|
||||||
{
|
{
|
||||||
case future_errc::broken_promise:
|
case future_errc::broken_promise:
|
||||||
return string("The associated promise has been destructed prior "
|
return string("The associated promise has been destructed prior "
|
||||||
|
|||||||
Reference in New Issue
Block a user