Re: compile or not compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eljay Love-Jensen <eljay@xxxxxxxxx> writes:

> Hi Karol,
> 
>  >...and something must be wrong when arguments are references because
> when I remove references program compiles fine.
> 
> Here's my C++ rule-of-thumb I've used since I started programming in C++:
> For POD, ALWAYS pass-by-value and never pass-by-constant-reference.
> For UDT, ALWAYS pass-by-constant-reference and never pass-by-value.

hm. So if a type is both POD and UDT, what do you do?


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux