cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What means const Socket&
What means const Socket&
May 18, 2010 at 9:30am UTC
lassir
(1)
I have now two days spend thinking and reseaching what means const Socket& or Socket&. especially this & character end of the name.
May 18, 2010 at 10:59am UTC
RedX
(156)
http://www.cplusplus.com/doc/tutorial/pointers/
To speak in very simple terms & is the same as * with the difference you mustn't dereference the object to change it's values.
const means you can't change it's values. Only const methods are allowed.
Topic archived. No new replies allowed.