Project

General

Profile

Bug #3324

Updated by Davide Pesavento over 8 years ago

Returning a `const Block` doesn't make sense and prevents move semantics. It should be either `Block` or `const Block&`. 

 Indeed the return type was originally `const Block&`, but it was changed in commit 83872fd229b8d87e8e2aac25ba1dac3a69740bfd for reasons unknown to me. 
 ___ 
 http://stackoverflow.com/questions/5689366/is-it-possible-for-a-non-member-function-to-return-a-const-value 

 http://stackoverflow.com/questions/8716330/purpose-of-returning-by-const-value 

 http://stackoverflow.com/questions/6299967/what-are-the-use-cases-for-having-a-function-return-by-const-value-for-non-built

Back