sys: Return std::nullopt instead of {} for empty optional values

This commit is contained in:
WerWolv
2022-01-30 12:43:43 +01:00
parent 4bc074fa84
commit dd572ba024
11 changed files with 45 additions and 46 deletions

View File

@@ -313,7 +313,7 @@ namespace hex {
}
if (evaluationStack.empty())
return {};
return std::nullopt;
else if (evaluationStack.size() > 1)
throw std::invalid_argument("Undigested input left!");
else