Can I access private members from outside the class without using friends?
If the class contains any template member functions you can specialize that member function to suit your needs. Even if the original developer didn’t think of it. safe.h class safe { int money; public: safe() : money(1000000) { } template <typename T> void backdoor() { // Do some stuff. } }; main.cpp: #include <safe.h> #include … Read more