Explicitly convert int to future_errc. Fixes http://llvm.org/bugs/show_bug.cgi?id=11428

llvm-svn: 149630
This commit is contained in:
Howard Hinnant 2012-02-02 20:31:36 +00:00
parent fd72fbef41
commit be745c8cce
1 changed files with 1 additions and 1 deletions

View File

@ -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 "