Re: [RFA 02/22] Use RAII to save and restore scalars

Tom Tromey
2016-09-30T15:18:06Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> scoped_restore scope = make_scoped_restore (&some_global);

I made this change. One minor oddity is that the 2-argument form of
make_scoped_restore required a copy constructor in the
scoped_restore_tmpl subclass. I think that's harmless though.

Tom