Skip to content

Commit

Permalink
fix Arguments::get<float>
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Mar 10, 2024
1 parent 90c51ea commit 076b037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arguments.hh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public:
RetT get(const IdentT& id, std::optional<RetT> default_value = std::nullopt) {
const std::string* text;
try {
text = &this->get<std::string>(id);
text = &this->get<std::string>(id, true);
} catch (const std::out_of_range&) {
if (default_value.has_value()) {
return *default_value;
Expand Down

0 comments on commit 076b037

Please sign in to comment.