Skip to content

Commit

Permalink
fix: avoid warning by adding never-reached code
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Jun 16, 2024
1 parent 3ffb9f1 commit a18ce2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/toml11/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ parse_boolean(location& loc, const context<TC>& ctx)
const auto val = [&str]() {
if (str == "true") { return true; }
else if(str == "false") { return false; }
else {assert("never reach here" && false);}
else {assert("never reach here" && false); return false;}
}();

// ----------------------------------------------------------------------
Expand Down

0 comments on commit a18ce2a

Please sign in to comment.