Skip to content

Commit

Permalink
Fix Wcovered-switch-default warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garyfurnish committed Jun 8, 2017
1 parent 29a7f03 commit 478d40d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ namespace boost { namespace property_tree {
return *stack.back().t;
}
case object:
default:
BOOST_ASSERT(false); // must start with string, i.e. call new_value
case key: {
l.t->push_back(std::make_pair(key_buffer, Ptree()));
Expand All @@ -130,6 +129,7 @@ namespace boost { namespace property_tree {
stack.pop_back();
return new_tree();
}
BOOST_ASSERT(false);
}
string& new_value() {
if (stack.empty()) return new_tree().data();
Expand Down

0 comments on commit 478d40d

Please sign in to comment.