Re-ordering C++ template functions -
I have a fixed template function in C ++, which, on a given condition, a template function in another class Makes a call. The problem is that to apply the second class, the full definition of first class is required because it creates a second class and stores it and manages it in the same fashion. The problem is that naturally, they fall as a class, and thus there is some tight interop, except that I want two classes for threading reasons. One kind, master for all threads, one child per thread, system. Any advice on how this can be implemented? Comment @ Comment: I have a problem which is slightly like this: class master {public: hair * createChild () {new child return); } Template & lt; Typename T & gt; T * Receive support (return); }}; Class child {Master * Master; Template & lt; Typename T & gt; T * GetSomething (int arg) {if (Rg) returns master-> GetSomething & lt; T & gt; (Arg); And return of return; }}; This is not a clear real implemen