M
marcus
I have this class A that contains a method A_method that opens a file
and does fgets.
I also have a template class B that contains a method B_method that
takes a class A object as template type. B_method then uses this A
object to call A_method.
here is a snippet (pseudo)
In class A.cpp:
===============
B <A> myVar;
// method that uses method of template class
A::someMethod(){
myVar.B_method(this);
and does fgets.
I also have a template class B that contains a method B_method that
takes a class A object as template type. B_method then uses this A
object to call A_method.
here is a snippet (pseudo)
In class A.cpp:
===============
B <A> myVar;
// method that uses method of template class
A::someMethod(){
myVar.B_method(this);