我有以下的类:
#include "SingleNode.h"
template <typename T>
class LinkedList<T>
{
private:
SingleNode<T>* head;
SingleNode<T>* tail;
SingleNode<T>* current;
int currentSize;
public:
LinkedList();
~LinkedList();
};
据我所知,它没有任何问题。然而,编译器给了我以下提示:
error: 'LinkedList' is not a template
为什么编译器没有将其识别为模板?