G
Guido Franzke
Guest
Hello,
I have used MFC's CArray for a long time, but I'm reaching limits of the class. So I want to implement my own class "CMyArray" with the functions I need.
In my project I have many CArrays. At first I want to rename the CArrays to CMyArray. When the new class is ready, I want to link it directly to my project.
CMyArray<int> numbers;
How can I define it, so that it is actually "CArray<int>"?
typedef CArray CMyArray;
// but because it is a template:
typedef template<class T> CArray CMyArray<T>;
But this does not work.
Thanks for help,
Guido
Continue reading...
I have used MFC's CArray for a long time, but I'm reaching limits of the class. So I want to implement my own class "CMyArray" with the functions I need.
In my project I have many CArrays. At first I want to rename the CArrays to CMyArray. When the new class is ready, I want to link it directly to my project.
CMyArray<int> numbers;
How can I define it, so that it is actually "CArray<int>"?
typedef CArray CMyArray;
// but because it is a template:
typedef template<class T> CArray CMyArray<T>;
But this does not work.
Thanks for help,
Guido
Continue reading...