Original Post
I have the following code:
template
class StreamList {
public:
void Allocate (DWORD ObjectsAmount);
void Copy (StreamList & SourceList);
void Enlarge (DWORD ObjectsAmount);
T & operator[] (DWORD Index);
StreamList ();
SteramList (DWORD ObjectsAmount);
~StreamList();
DWORD ObjectsAmount;
private:
T * pObjects;
};
template
StreamList::StreamList(DWORD ObjectsAmount)
{
this->pObjects = new T [ObjectsAmount];
this->ObjectsAmount = ObjectsAmount;
}
However, it says on the constructor with DWORD that it is unable to resolve function overload.
Why is that?