[HH] c++ strings?

Matthew Gillen me at mattgillen.net
Tue Nov 20 15:57:13 EST 2012


On 11/20/2012 03:41 PM, Greg London wrote:
> Why would I need "const" when I pass by reference, but not need const when
> I pass by value?

Because references are not pointers, and you cannot "re-seat" the reference.
   http://www.parashift.com/c++-faq/reseating-refs.html

If you want the nitty-gritty details on how references are implemented:
  http://www.parashift.com/c++-faq/overview-refs.html

Matt



More information about the Hardwarehacking mailing list