Method child() without arguments does not really work
I just went ahead and added the
child() method to
LeafNode, only to realize after hitting the merge button that this thing is absolutely useless.
child() has to return the node itself, but because the nodes don't use CRTP, they don't know their actual implementation type. So calling
node.child() just gives you a rather useless, empty
As it turns out, the other nodes don't implement this functionality (
child() without arguments) either, probably for the same reason.
You can call the freestanding function without a problem, so
child(leafNode) works find and returns
@carsten.graeser Do you have a good idea to work around this problem? I don't see one...