Thanks, the below is what I actually committed, only minor formatting /
stylistic changes, after testing on x86_64-linux multilib, in various modes.
A few additional comments:
- I suspect that the testing infrastructure could be made more
consistent with the one used in the exception/ testcases, in particular,
I don't like so much the repeated cont_traits.h and debug_cont_traits.h
headers...
- If you are interested in performance, I would recommend again
benchmarking and analyzing in detail our uses of mutexes in debug-mode,
which we quickly added on top of the original design to make sure the
behavior wrt mt programs is indistinguishable from that of the normal
containers, besides performance of course. I'm pretty sure there are big
margins of improvement there...
- Well, if you care about debug-mode more generally, some help on adding
a proper debug-mode forward_list would be appreciated, is in my todo
list, but I didn't get around to work on it so far. The task isn't
*completely* trivial - will require extending a bit the generic
debug-mode infrastructure - because of the before_begin concept, which I
believe could be dealt with similarly to end in the other containers.
Let me know in case...
Thanks again,
Paolo.
////////////////////////