Not true. Any function, static or otherwise, can access non-static members of a class if they have a pointer or reference to an instance of that class.



#include <iostream>
class X
{
...