Slime wrote:
> It definitely matters less when you're the only one editing the code, but
> asserting things like this is still a good habit to get into.
OK, fair enough.
> - trees.size() is 0 in the first place? This could happen if an empty
> vector was passed in.
There probably *should* be an assert to check that the vector passed in
is non-empty...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|