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 3837783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace boost { namespace property_tree {
stack.pop_back();
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 3837783

Please sign in to comment.