|
8-7-2002: Const Correctness Part 6 — This week I'll show you how you can use overloaded functions to determine whether the invoking object is const or not.
8-7-2002: Const Correctness Part 5 — Now that everyone understands the meaning of the keyword const in variable declarations and function parameter lists (you do understand, don't you? Go back and read the last 4 articles if you don't!), I'd like to look at the use of const to create constant member functions.
8-7-2002: Const Correctness Part 4 — I've saved this particular aspect of const correctness for its own short article, since it's a little less common and perhaps more controversial than others.
8-7-2002: Const Correctness Part 3 — Thanks to reader Eric Nagler, I've changed my mind about constant declarations and now prefer 'int const *i' to 'const int *i'. I really do believe using this form is a good habit to get into, even though it might seem strange at first.
8-7-2002: Const Correctness Part 2 — Last week's article discussed the use of the keyword const in function parameter lists. I had a few readers write in asking why I only covered three forms of const parameters, when there are several more legal possibilities.
|