mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
silence MSVC enum warning
This commit is contained in:
parent
9a5f50f95c
commit
9df557c951
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ std::string Greeter::greet(LanguageCode lang) const {
|
||||||
case LanguageCode::ES:
|
case LanguageCode::ES:
|
||||||
return "¡Hola " + name + "!";
|
return "¡Hola " + name + "!";
|
||||||
case LanguageCode::FR:
|
case LanguageCode::FR:
|
||||||
|
#if defined(_WIN32) || defined(WIN32)
|
||||||
|
// this silences a warning as MSVC does not seem to understand strongly-typed enums
|
||||||
|
default:
|
||||||
|
#endif
|
||||||
return "Bonjour " + name + "!";
|
return "Bonjour " + name + "!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue