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

Pedro Alves
2016-09-30T23:48:52Z

On 09/30/2016 03:02 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> template<class T>
> Pedro> scoped_restore_<T> make_scoped_restore (T *var)
> Pedro> {
> Pedro> return scoped_restore_<T> (var);
> Pedro> }
>
> Yeah, I'll do this. I don't know why I didn't remember this when
> writing the patches.

Great, thanks.

>
> I'd also appreciate it if you could say whether you want "m_" member
> naming.
>

Unless there's a good reason to deviate, I think it's a good idea
to follow gcc's coding conventions. For that reason, my preference
is to use "m_" for private data members.

Thanks,
Pedro Alves