On Wednesday 30 September 2015 20:41:44 Schulhof, Gabriel wrote:
> Hey!
> 
> Big +1 from me. Seeing a structure passed by value is just ... ugh.

Depending on the size, it's acceptable. The rule of thumb is 16 bytes.

See http://www.macieira.org/blog/2012/02/the-value-of-passing-by-value/

(I've been asked to write "the reference on passing by reference" and 
"pointers on passing by pointer", but never got around to it)
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to