If it's a public class, a static class member requires editing the header file. This is not always desirable.
Another option is a file-scoped variable, in an anonymous namespace. This is sufficient if you need access only in one method, and if you need it in multiple.