franaisa/Tree — Issue #14: Access by iterator to children is not controlled
Author: franaisa
Created: 2012-03-03 21:31:46+00:00
State: open

When we try to access each child of a node, we are not preventing the client from invalid accesses. Any iterator can be passed, hence, if the client tries to access the 'end()' iterator a segmentation fault will be raised. Should we throw exceptions? or should we just leave it to the client to control which children they are retrieving based on the number of children available?