I wrote a template class which is giving compilation error
template class Entity { string EntityName; int EntitySize; Entity
You have written a recursive type. Entity has other Entity members. You should change the Entity members into a pointer or reference.