Hi JinMei and Michal:
Now we are using a bool variable as the template parameter for rbtree to
set whether we expose empty node or not, It will cause the following
problems
All the enums or typedefines declared inside rbtree with different search
policy will be different type from each other which cause the last night
build error.
Since whether expose empty node or not is just a policy, and rbtree with
different policy shouldn't necessarily be different class,
so I propose just add two functions in rbtree like
exposeEmptyNode();
hideEmptyNode();
instead of add a bool template parameter for rbtree.
In this way, the code is much simpler and easy to read and test.
If this is a better way, I will modify rbtree in the ticket517 which also
includes the hard part for rbtree empty node handling.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20110121/16a8e6e2/attachment.html>