Const Correctness

Near the end of the Const Member Functions lesson in the Bull Cow game, the Const Correctness resource was mentioned. I could not find this attached to the lesson (on Udemy), but I assume it was referring to the following: https://isocpp.org/wiki/faq/const-correctness
This is a pretty interesting and important topic, so I wanted to at least share that further. Please let me know if it is actually attached as a resource somewhere.

The second Google result is also an interesting hit as it is a practical evaluation of why to bother with it: https://stackoverflow.com/questions/136880/sell-me-on-const-correctness

4 Likes

I can’t find it too. Thank you for posting the resources.

that is so far above my head lol thanks for the share!

Yea, it seems like the ressource was not “correct” attached, pun intended.

Const correctness for small og simple apps/ games should not be worried about, more if you develop a high end tier game or an app with a lot of features. Const correctness is just to ensure making all objects/ functions const… Well, those you don’t want changed. Like your name in real life should not change all the time while age changes every year.

And yes, I know you can have a name changed but you get the point. Hope it helps a bit :))

Privacy & Terms