c++ meaning of the use of const in the signature
- by jbu
Please help me understand the following signature:
err_type funcName(const Type& buffer) const;
so for the first const, does that mean the contents of Type cannot change or that the reference cannot change?
secondly, what does the second const mean? I don't really even have a hint.
Thanks in advance,
jbu