Smart pointer pretty printers

Juraj Oršulić juraj.orsulic@fer.hr
Thu Mar 2 18:11:00 GMT 2017


On Fri, Feb 24, 2017 at 5:36 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
> For a patch this size we do, so I'm not going to look at your patch.
> It will probably be simpler to just do it myself, and not worry about
> paperwork.
>
> If you want to contribue in future then please do complete the
> necessary paperwork anyway:
> https://gcc.gnu.org/onlinedocs/libstdc++/manual/appendix_contributing.html#contrib.list

Hi Jonathan,

I have completed the assignment.

I am resubmitting the patch from the last time, this time as an
attachment (since the previous was broken by newlines). As before,
there are two versions of the patch: the one that I obtained by editing
printers.py on Ubuntu 16.04, which ships with gcc 5.4.0; and the
other, for the current printers.py from the gcc repo (I assume it's gcc
6?), which needs a slightly different patch because the unique_ptr
printer has significantly changed.

I have been using the gcc 5 patch without problems.  I have not tested
the gcc 6 patch, but since it is very similar, I don't expect any
problems.

Let me know if you want me to expand this for other iterators.

Regards,
Juraj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printers_py_gcc5.patch
Type: text/x-patch
Size: 2105 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170302/9953d775/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printers_py_gcc6.patch
Type: text/x-patch
Size: 2654 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170302/9953d775/attachment-0001.bin>


More information about the Libstdc++ mailing list