crou
May 29th, 2002, 11:51 AM
First of all, I apologize in advance for my poor english.
Here is my problem :
I use two template classes : Container and Array which is derived from Container.
Container can contain absolutely anything and Array, which is more specific, should be used only with simple type (float, short, etc...)
However, I need to use Array with more elaborate types such as CPoint
When I try, I have a message such as :
undefined reference to `CArray<CPoint>::CArray(int, int)'
How is that possible?
Is it possible to restrict the Type when a class derives from another?
Any help will be welcome
Thank you in advance
croucrou
Here is my problem :
I use two template classes : Container and Array which is derived from Container.
Container can contain absolutely anything and Array, which is more specific, should be used only with simple type (float, short, etc...)
However, I need to use Array with more elaborate types such as CPoint
When I try, I have a message such as :
undefined reference to `CArray<CPoint>::CArray(int, int)'
How is that possible?
Is it possible to restrict the Type when a class derives from another?
Any help will be welcome
Thank you in advance
croucrou