C++ const in getter [duplicate]
There is a huge difference between the two ways. const bool isReady() The code above will return a const bool, but it does not guarantee that the object will not change its logic state. bool isReady() const This will return a bool, and it guarantees that the logic state of your object will not change. … Read more