title: In C++, is there a practical way to restrict the calling of one function to certain function?
body: <p>C++ does not support nested function. Say I have function a and b, I want to guarantee that only a can call b, and nobody else can, is there a way of doing so?</p>