tcanabrava added a comment.

  In D26130#582343 <https://phabricator.kde.org/D26130#582343>, @ervin wrote:
  
  > This is pointless, most compilers would do NRVO (+ move assign) here... 
which would be neatly obliterated by the ternary operator. This is a 
pessimisation you're proposing here, not an optimization.
  
  
  I don't know what you are talking about, this is using return time 
optimization. have you tested the code or just assumed that ternaries will not 
do NRVO?

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26130

To: tcanabrava, patrickelectric, ervin
Cc: ervin, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns

Reply via email to