[cfe-commits] Implement 'mutable'

Daniel Dunbar daniel at zuster.org
Thu Nov 13 12:47:57 PST 2008


On Thu, Nov 13, 2008 at 11:40 AM, Sebastian Redl
<sebastian.redl at getdesigned.at> wrote:
> Douglas Gregor wrote:
>> +DIAG(err_bad_mutable, ERROR,
>> +     "'mutable' can only be applied to non-const, non-static,
>> non-reference "
>> +     "class data members")
>>
>> That "non-const, non-static, non-reference" is a real mouthful. I
>> think it would be clearer if you split this into separate error
>> messages for "const", one for "static", references, and for things
>> that aren't data members.
> I'll see what I can do.

Not sure if this is what Doug meant, but instead of "splitting" this
is probably a good candidate to just replace the mouthful with %0 and
supply the appropriate value at run time.

 - Daniel



More information about the cfe-commits mailing list