Can one do the below somehow ? It seems not from the docs, I have tried several things.
Am I missing something? Not possible ?
template<class ObjT>
class MyTemplateClass {
MyTemplateClass(NonTemplateClass &ntc) {
ntc.someInternalMethod( blah blah );
}
};
class NonTemplateClass {
private:
void someInternalMethod( blah blah );
public:
friend MyTemplateClass<?> // Yes not valid code but the desire
// is to declare that all versions/specializatios of the template class
// have access to the protected/private members in NonTemplateClass
};