On 04/25/2017 11:58 AM, David Malcolm wrote:

   { return FIELD; }

for the correct field, favoring returning T to returning T&.

Hm, that seems the poorer choice (unless you can suggest both). After all the T& case will meet the rvalue case (const-qualifiers ignoring). I suppose if thing is 'T const *':
  thing->field;
you could rule out any non-const qualified accessor?

nathan

--
Nathan Sidwell

Reply via email to