I have this small template class:
namespace emple {
template <class LinkedClass>
class LinkedInList
{
public:
LinkedInList()
{
active = false;
}
~LinkedInList(){}
LinkedClass* getNext() const
{
return next;
}
void setNext(LinkedClass* const next_)
{
next = next_;
}
void setActive(bool state)
{
active = state;
}
bool isActive()
{
return active;
}
private:
LinkedClass* next;
bool active;
};
};
When compiling I get this error:
class template has already been defined.
What am I doing wrong?