Skip to content

Commit

Permalink
Use BOOST_UNREACHABLE_RETURN instead of BOOST_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Nov 24, 2023
1 parent 90786bb commit 0e3abf2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ namespace boost { namespace property_tree {
return new_tree();
}
BOOST_ASSERT(false);
BOOST_UNREACHABLE_RETURN(root);
}
string& new_value() {
if (stack.empty()) return new_tree().data();
Expand Down

0 comments on commit 0e3abf2

Please sign in to comment.