A normal member function has a hidden parameter of
ClassName * const this
A const member function has a hidden parameter of
ClassName const * const this
A normal member function has a hidden parameter of
ClassName * const this
A const member function has a hidden parameter of
ClassName const * const this
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
let me see if i understand this.
so the this pointer is always a constant pointer(because it points to itself). but wether its a constant pointer to a constant object is dependant upon that const on the right side? That makes sense (as long as im understanding correctly)
thanks for the info
Last edited by faze; 06-23-2005 at 11:31 PM.