Dear Folks, I have a fairly complex problem at hand. I need to be able to define various class hierarchies, which are causing me a lot of trouble. I wanted to know a few of C++ features to clear out my confusions.
Firstly,
lets us suppose we I need to set up a class hierarchy, like C inherits B and B inherits A. and I have used three template arguments over class A like
template <class C1, class C2, class C3>
Class A {
C1 a;
C2 b;
C3 c;
};
Now, my requirements are such that, I need to inherit class B from this class A, and I need to fix C1 to some pre-defined class that I may have, lets say MyClass. so how do i go on defining Class B, by fixing one of the template arguments of it's parent class A ? What if i need to fix more template arguments down this hierarchy, what is the standard procedure for that ?
Regards
Vaid, Abhishek