[PATCH] libstdc++: Fix num_children of the map pretty-printers

Tom Tromey tromey@adacore.com
Mon Jul 27 18:36:14 GMT 2026


>>>>> "David" == david faure <david.faure@kdab.com> writes:

David> From: David Faure <david.faure@kdab.com>
David> StdMapPrinter and Tr1UnorderedMapPrinter yield a separate child for the
David> key and for the value of every element, as their 'map' display hint
David> requires, but their num_children methods return the number of elements,
David> i.e. half of what children() produces.

FWIW this patch looks good to me.

Tom


More information about the Libstdc++ mailing list