This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 17/22] Remove make_cleanup_restore_current_uiout
On 09/29/2016 03:05 PM, Tom Tromey wrote:
>>>>>> "Trevor" == Trevor Saunders <tbsaunde@tbsaunde.org> writes:
>
> Trevor> isn't this just scoped_restore<ui_out *> ? why do you need a separate
> Trevor> class?
>
> In an earlier thread there was a discussion of not having this cleanup
> be over-general -- that is, it was intentionally specific to just
> current_uiout.
how about:
struct scoped_restore_current_uiout : public scoped_restore<ui_out *>
{
scoped_restore_current_uiout ()
: scoped_restore (¤t_uiout)
{}
};
?
Thanks,
Pedro Alves