Quantcast
Channel: Should I now be passing by value? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by M.M for Should I now be passing by value?

Perhaps you took that part of the talk out of context, or something. For large objects, typically it depends on whether the function needs a copy of the object or not. For example:ExpensiveType...

View Article



Answer by Peter - Reinstate Monica for Should I now be passing by value?

I have now watched parts of Chandler's talk. I think the general discussion along the lines "should I now always pass by value" does not do his talk justice. Edit: And actually his talk has been...

View Article

Should I now be passing by value?

In this talk (sorry about the sound) Chandler Carruth suggests not passing by reference, even const reference, in the vast majority of cases due to the way in which it limits the back-end to perform...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images