private data passed to non memebr function

Hello, Can a private variable declared in a class be visble when passed to a non member function by reference?. I've noticed the member functions are visible when passed to the same non member function but not the data? Or do i make the data public as well.

Seems a little untidy doing it this way?
Topic archived. No new replies allowed.