Skip to content

Commit

Permalink
fix [set_variables]
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 5, 2016
1 parent 52f0e3e commit d278518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/variable_info.cpp
Expand Up @@ -317,22 +317,22 @@ namespace
}
else
{
return get_child_range(*state.child_, state.key_, state.index_, state.index_ + 1);
return get_child_range(*state.child_, state.key_, state.index_, 1);
}
}
template<>
config::child_itors as_array_visitor<vit_create_if_not_existent>::from_indexed(as_array_visitor::param_type state) const
{
//Ensure we have a config at the given explicit position.
get_child_at<vit_create_if_not_existent>(*state.child_, state.key_, state.index_);
return get_child_range(*state.child_, state.key_, state.index_, state.index_ + 1);
return get_child_range(*state.child_, state.key_, state.index_, 1);
}
template<>
config::child_itors as_array_visitor<vit_throw_if_not_existent>::from_indexed(as_array_visitor::param_type state) const
{
//Ensure we have a config at the given explicit position.
get_child_at<vit_throw_if_not_existent>(*state.child_, state.key_, state.index_);
return get_child_range(*state.child_, state.key_, state.index_, state.index_ + 1);
return get_child_range(*state.child_, state.key_, state.index_, 1);
}
}
/// range_based operations
Expand Down

0 comments on commit d278518

Please sign in to comment.