Q:

Workaround for accessing non-static members inside static member functions

What are the workarounds for accessing the non-static member variables of some class(Say A) inside static member functions of another class(Say B)? I am coding in c++. Class A is derived with public properties of class B.
Any pointers?

A:

Pass a reference/pointer to the instance when calling the static member function. Use that instance to call the non-static member function.

