pb_ds debug patch ?
François Dumont
francois.cppdevs@free.fr
Mon Mar 7 20:11:00 GMT 2011
Hi
While working on libstdc++ I experiment a regression in usage of
pb_ds priority_queue. To find out what was wrong I made some
modifications in debug mode of this type to have the
binary_heap_::assert_valid method report the file:line where the
assert_valid is invoked and not always a line in the method
implementation code. As most of methods are using a assert_valid after
enter and an other before exit it helps me detect exactly after what
code the data structure got corrupted.
Here is the patch. Now that I found my regression should I revert
those modifications or are you interested in me generalizing this
approach to other priority_queue data structure policies and submit a
final patch ? If so tell me if new macro names are ok with you ?
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pb_ds_debug_priority_queue.patch
Type: text/x-patch
Size: 12106 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110307/dbce017c/attachment.bin>
More information about the Libstdc++
mailing list