IT seems to me that you are trying to make values you are passing in const and then your functions may not take a const argument this is important to note that const is used mainly to prevent outside information from changing the internernal data of a class or even a function itself. The compiler cannot convert to from a const to a refrence because that would be changing something and allow perhaphs access it should not have. This is just my oppion but i would not make your objects const simply make functions return a const of something if you want to protect your internal data.
Hope that helps some what.
Regards jouei.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement