Expand|Select|Wrap|Line Numbers
- template<class E>
- class LinkedList: public List {
- private:
- Node<E> head;
- class Node<E> {
- private:
- E data;
- Node* next;
- Node* prev;
- friend class List;
- };
- public:
- //constructors and stuff here
- };
Expand|Select|Wrap|Line Numbers
- linkedlist.h:21: error: declaration of ‘class E’
- linkedlist.h:6: error: shadows template parm ‘class E’
- linkedlist.h:21: error: ‘template<class E> class 'List’ used without template parameters