Re: [PATCH 6/8] const-fy regcache::m_aspace

Yao Qi
2017-11-01T14:35:35Z

On Wed, Nov 1, 2017 at 1:59 PM, Simon Marchi <simon.marchi@polymtl.ca> wrote:
>>
>> I want to achieve both, the field m_aspace is a const, and the pointed
>> object is const too.
>>
>> /* The address space of this register cache (for registers where it
>> makes sense, like PC or SP). */
>> - struct address_space *m_aspace;
>> + const address_space * const m_aspace;
>
>
> Ah ok I had missed that there was two consts added.
>

The 2nd const was added in the updated patch. It was missed in the
the first version.

--
Yao (齐尧)