I am wondering why the const member function .get() has to return a const value, and need to pass by reference. For example, int get() const {return x;} won't work. Thanks for any ideas.
> For example, int get() const {return x;} won't work
it does work.
if your code is giving you errors, then post the code that gives you errors, along with the error message.