Hey,
I'm using Visual C++ 6. I'm having a problem overloading operators as friends. Everything works fine when I don't bring the std namespace into scope, but when I do I get error messages saying that the function cannot access the private data of the class. Basically I want to know what the issue is with this, and if there is a workaround that is not making all the data public, or using a accessor method.
thanks
I'm using Visual C++ 6. I'm having a problem overloading operators as friends. Everything works fine when I don't bring the std namespace into scope, but when I do I get error messages saying that the function cannot access the private data of the class. Basically I want to know what the issue is with this, and if there is a workaround that is not making all the data public, or using a accessor method.
thanks