When checking my code with PC-LINT it advised me to make some member-functions const
What is the advantage of doing this ?
disc 0 Light Poster
Recommended Answers
Jump to PostDaily in the morning, chant out this line " Its better to detect error at compile time than at link time or run time."
And this is the whole key to const-correctness, this is what you call it in technical terms.
Read:
All 4 Replies
daviddoria 334 Posting Virtuoso Featured Poster
Murtan 317 Practically a Master Poster
siddhant3s 1,429 Practically a Posting Shark
disc 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.