[flang] Use std::nullopt rather than {}.

Original-commit: flang-compiler/f18@9a740acf83
Reviewed-on: https://github.com/flang-compiler/f18/pull/151
This commit is contained in:
peter klausler 2018-07-30 11:08:22 -07:00
parent d90437bd91
commit 56cc22fdfe
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ std::optional<A> GetIf(const VARIANT &u) {
if (const A * x{std::get_if<A>(&u)}) {
return {*x};
}
return {};
return std::nullopt;
}
} // namespace Fortran::common
#endif // FORTRAN_COMMON_IDIOMS_H_