I wrote a template class which is giving compilation error
template class Entity { string EntityName; int EntitySize; Entity
Change
Entity pPrev; Entity pNext;
to
Entity *pPrev; Entity *pNext;
Your type definition is recursive...