So in my namespace's .h file, I have
namespace wtvr{ static Matrix m; void LoadIdentity(void); }; and in its .cpp file, I have
namespace wtvr{ void LoadIdentity(void){ m = Identity(); m.display();// trace for debugging } }; else where in the main program
wtvr::LoadIdentity(); wtvr::m.display(); The first display() prints the identity matrix to the screen from within the LoadIdentity() function, but the second, which is after the function returns, displays all zeros. Why are my values disappearing? Is there a different way I should be making my global? Thanks