Const, Move and RVO—Bartlomiej Filipek

Save to:
Instapaper Pocket Readability

const does not prevent (N)RVO, youhou.

Const, Move and RVO

by Bartlomiej Filipek

From the article:

C++ is a surprising language. Sometimes simple things are not that simple in practice. Last time I argued that in function bodies const should be used most of the time. But two cases were missed: when moving and when returning a value.

Does const influence move and RVO?

Add a Comment

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.