parent
ff9a9e017a
commit
644f5e7386
1 changed files with 3 additions and 1 deletions
|
@ -314,7 +314,9 @@ namespace {
|
|||
typename as_range_visitor_base::result_type from_indexed(typename as_range_visitor_base::param_type state) const
|
||||
{
|
||||
//Ensure we have a config at the given explicit position.
|
||||
get_child_at<vit>(*state.child_, state.key_, state.index_);
|
||||
if(state.index_ > 0) {
|
||||
get_child_at<vit>(*state.child_, state.key_, state.index_ - 1);
|
||||
}
|
||||
return this->handler_(*state.child_, state.key_, state.index_, state.index_ + 1);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue