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

Tom Tromey
2016-10-01T03:55:32Z

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

Pedro> Guess we could have the copy constructor actually move instead of
Pedro> copy, setting the copied-from's pointer member to NULL, and then
Pedro> have the destructor do nothing if the pointer is NULL.

Yeah. I took this approach. I'm not super thrilled with it, but at the
same time it's not *too* bad.

Tom