Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. LinkNode.h: In instantiation of ‘LinkNode<int>’:
  2. DList.h:36: instantiated from ‘void DList<T>::insertFront(T*) [with T = int]’
  3. main.cpp:13: instantiated from here
  4. LinkNode.h:16: error: template argument required for ‘struct DList’
  5. LinkNode.h: In member function ‘void DList<T>::insertFront(T*) [with T = int]’:
  6. main.cpp:13: instantiated from here
  7. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  8. DList.h:37: error: within this context
  9. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  10. DList.h:38: error: within this context
  11. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  12. DList.h:38: error: within this context
  13. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  14. DList.h:39: error: within this context
  15. LinkNode.h:15: error: ‘LinkNode<int>* LinkNode<int>::prev’ is private
  16. DList.h:39: error: within this context
  17. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  18. DList.h:41: error: within this context
  19. LinkNode.h:15: error: ‘LinkNode<int>* LinkNode<int>::prev’ is private
  20. DList.h:42: error: within this context
  21. LinkNode.h:15: error: ‘LinkNode<int>* LinkNode<int>::prev’ is private
  22. DList.h:43: error: within this context
  23. LinkNode.h: In member function ‘void DList<T>::printList() const [with T = int]’:
  24. main.cpp:16: instantiated from here
  25. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  26. DList.h:91: error: within this context
  27. LinkNode.h:14: error: ‘LinkNode<int>* LinkNode<int>::next’ is private
  28. DList.h:92: error: within this context
  29. LinkNode.h:16: error: ‘int* LinkNode<int>::value’ is private
  30. DList.h:93: error: within this context
  31. make: *** [program] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement