Issue with namespace function declared as friend of class
I'm having an issue with a namespace function which was declared as a friend of class. The namespace definition is above the class definition, but contains only function declarations (and not their definitions). The namespace functions' definitions are below the class definition.
Now, the issue is, one of my namespace functions (which is declared as a friend by the class) attempt to access a private member of the class, but when I try to compile it, it complains that the private variable I'm trying to access "was not declared in this scope".
Any ideas why the 'friend' declaration is not working right, and not allowing access to the private members of the class?
Thanks in advance.