Advertisement
Guest User

Untitled

a guest
Feb 4th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. In file included from Queue.h:7:0,
  2. from Queue.C:4:
  3. Stack.h:30:13: error: declaration of ‘class T’
  4. template <class T>
  5. ^
  6. In file included from Queue.h:7:0,
  7. from Queue.C:4:
  8. Stack.h:18:10: error: shadows template parm ‘class T’
  9. template<class T>
  10. ^
  11. In file included from Stack.C:5:0:
  12. Stack.h:30:13: error: declaration of ‘class T’
  13. template <class T>
  14. ^
  15. In file included from Stack.C:5:0:
  16. Stack.h:18:10: error: shadows template parm ‘class T’
  17. template<class T>
  18. ^
  19. In file included from Queue.h:7:0,
  20. from main.C:2:
  21. Stack.h:30:13: error: declaration of ‘class T’
  22. template <class T>
  23. ^
  24. In file included from Queue.h:7:0,
  25. from main.C:2:
  26. Stack.h:18:10: error: shadows template parm ‘class T’
  27. template<class T>
  28. ^
  29. In file included from Stack.h:87:0,
  30. from Queue.h:7,
  31. from main.C:2:
  32. Stack.C: In instantiation of ‘Stack<T>::Stack(const Stack<T>&) [with T = int]’:
  33. Stack.C:18:23: required from ‘std::ostream& operator<<(std::ostream&, Stack<T>&) [with T = int; std::ostream = std::basic_ostream<char>]’
  34. main.C:27:9: required from here
  35. Stack.C:62:5: error: no match for ‘operator~’ (operand type is ‘Stack<int>’)
  36. ~Stack();
  37. ^
  38. Stack.C:62:5: note: candidates are:
  39. In file included from /usr/include/c++/4.8/ios:42:0,
  40. from /usr/include/c++/4.8/ostream:38,
  41. from /usr/include/c++/4.8/iostream:39,
  42. from Queue.h:5,
  43. from main.C:2:
  44. /usr/include/c++/4.8/bits/ios_base.h:87:3: note: std::_Ios_Fmtflags std::operator~(std::_Ios_Fmtflags)
  45. operator~(_Ios_Fmtflags __a)
  46. ^
  47. /usr/include/c++/4.8/bits/ios_base.h:87:3: note: no known conversion for argument 1 from ‘Stack<int>’ to ‘std::_Ios_Fmtflags’
  48. /usr/include/c++/4.8/bits/ios_base.h:127:3: note: std::_Ios_Openmode std::operator~(std::_Ios_Openmode)
  49. operator~(_Ios_Openmode __a)
  50. ^
  51. /usr/include/c++/4.8/bits/ios_base.h:127:3: note: no known conversion for argument 1 from ‘Stack<int>’ to ‘std::_Ios_Openmode’
  52. /usr/include/c++/4.8/bits/ios_base.h:165:3: note: std::_Ios_Iostate std::operator~(std::_Ios_Iostate)
  53. operator~(_Ios_Iostate __a)
  54. ^
  55. /usr/include/c++/4.8/bits/ios_base.h:165:3: note: no known conversion for argument 1 from ‘Stack<int>’ to ‘std::_Ios_Iostate’
  56. make: *** [*.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement