Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

pointers or references?

Name: Anonymous 2010-03-08 15:05

Hello /prog/.

Can you help me? I'd like to know the real pros and cons of using pointers instead of references (or vice versa) in C++.

Name: Anonymous 2010-03-08 15:28

References are pointers with better syntax and more safety because you can't change what they point to. Performance-wise they should be equivalent.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List