Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.15 KB | None | 0 0
  1.  
  2. [flong3@linux-a1 mp_list]$ make
  3. clang++ -Iinclude -std=c++14 -stdlib=libc++ -c -g -O1 -Wall -Wextra src/main.cpp
  4. In file included from src/main.cpp:1:
  5. In file included from include/dl_list.h:265:
  6. include/dl_list.tcc:63:31: warning: unused parameter 'other'
  7. [-Wunused-parameter]
  8. dl_list<T>::dl_list(dl_list&& other)
  9. ^
  10. include/dl_list.tcc:81:32: warning: unused parameter 'other'
  11. [-Wunused-parameter]
  12. void dl_list<T>::swap(dl_list& other)
  13. ^
  14. include/dl_list.tcc:87:30: warning: unused parameter 'data' [-Wunused-parameter]
  15. void dl_list<T>::push_back(T data)
  16. ^
  17. include/dl_list.tcc:119:49: warning: unused parameter 'first'
  18. [-Wunused-parameter]
  19. void dl_list<T>::reverse(std::unique_ptr<node>& first, node*& last)
  20. ^
  21. include/dl_list.tcc:119:63: warning: unused parameter 'last'
  22. [-Wunused-parameter]
  23. void dl_list<T>::reverse(std::unique_ptr<node>& first, node*& last)
  24. ^
  25. include/dl_list.tcc:152:39: warning: unused parameter 'n' [-Wunused-parameter]
  26. void dl_list<T>::reverse_nth(unsigned n)
  27. ^
  28. include/dl_list.tcc:208:30: warning: unused parameter 'start'
  29. [-Wunused-parameter]
  30. auto dl_list<T>::split(node* start, unsigned split_point)
  31. ^
  32. include/dl_list.tcc:229:46: warning: unused parameter 'first'
  33. [-Wunused-parameter]
  34. auto dl_list<T>::merge(std::unique_ptr<node> first,
  35. ^
  36. include/dl_list.tcc:230:46: warning: unused parameter 'second'
  37. [-Wunused-parameter]
  38. std::unique_ptr<node> second) -> std::unique_ptr<node>
  39. ^
  40. include/dl_list.tcc:247:50: warning: unused parameter 'start'
  41. [-Wunused-parameter]
  42. auto dl_list<T>::mergesort(std::unique_ptr<node> start, uint64_t length)
  43. ^
  44. include/dl_list.tcc:247:66: warning: unused parameter 'length'
  45. [-Wunused-parameter]
  46. auto dl_list<T>::mergesort(std::unique_ptr<node> start, uint64_t length)
  47. ^
  48. include/dl_list.tcc:98:13: error: object of type
  49. 'std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
  50. std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' cannot
  51. be assigned because its copy assignment operator is implicitly deleted
  52. a->next = head_;
  53. ^
  54. src/main.cpp:20:22: note: in instantiation of member function
  55. 'cs225::dl_list<epng::rgba_pixel>::push_front' requested here
  56. list.push_front(*img(i, j));
  57. ^
  58. /class/cs225/lm35/bin/../include/c++/v1/memory:2515:31: note: copy assignment
  59. operator is implicitly deleted because
  60. 'unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
  61. std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' has a
  62. user-declared move constructor
  63. _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
  64. ^
  65. In file included from src/main.cpp:1:
  66. In file included from include/dl_list.h:265:
  67. include/dl_list.tcc:99:10: error: no viable overloaded '='
  68. head_=a;
  69. ~~~~~^~
  70. /class/cs225/lm35/bin/../include/c++/v1/memory:2459:29: note: candidate function
  71. (the implicit copy assignment operator) not viable: no known conversion
  72. from 'cs225::dl_list<epng::rgba_pixel>::node *' to 'const
  73. std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
  74. std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' for
  75. 1st argument
  76. class _LIBCPP_TYPE_VIS_ONLY unique_ptr
  77. ^
  78. /class/cs225/lm35/bin/../include/c++/v1/memory:2544:47: note: candidate function
  79. not viable: no known conversion from
  80. 'cs225::dl_list<epng::rgba_pixel>::node *' to
  81. 'std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
  82. std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' for
  83. 1st argument
  84. _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(unique_ptr&& __u...
  85. ^
  86. /class/cs225/lm35/bin/../include/c++/v1/memory:2600:43: note: candidate function
  87. not viable: no known conversion from
  88. 'cs225::dl_list<epng::rgba_pixel>::node *' to 'nullptr_t' for 1st argument
  89. _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(nullptr_t) _NOEXCEPT
  90. ^
  91. /class/cs225/lm35/bin/../include/c++/v1/memory:2560:13: note: candidate template
  92. ignored: could not match 'unique_ptr<type-parameter-0-0,
  93. type-parameter-0-1>' against 'cs225::dl_list<epng::rgba_pixel>::node *'
  94. operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
  95. ^
  96. In file included from src/main.cpp:1:
  97. In file included from include/dl_list.h:265:
  98. include/dl_list.tcc:98:13: error: object of type
  99. 'std::__1::unique_ptr<cs225::dl_list<int>::node,
  100. std::__1::default_delete<cs225::dl_list<int>::node> >' cannot be assigned
  101. because its copy assignment operator is implicitly deleted
  102. a->next = head_;
  103. ^
  104. src/main.cpp:65:13: note: in instantiation of member function
  105. 'cs225::dl_list<int>::push_front' requested here
  106. lst.push_front(i);
  107. ^
  108. /class/cs225/lm35/bin/../include/c++/v1/memory:2515:31: note: copy assignment
  109. operator is implicitly deleted because
  110. 'unique_ptr<cs225::dl_list<int>::node,
  111. std::__1::default_delete<cs225::dl_list<int>::node> >' has a user-declared
  112. move constructor
  113. _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
  114. ^
  115. In file included from src/main.cpp:1:
  116. In file included from include/dl_list.h:265:
  117. include/dl_list.tcc:99:10: error: no viable overloaded '='
  118. head_=a;
  119. ~~~~~^~
  120. /class/cs225/lm35/bin/../include/c++/v1/memory:2459:29: note: candidate function
  121. (the implicit copy assignment operator) not viable: no known conversion
  122. from 'cs225::dl_list<int>::node *' to 'const
  123. std::__1::unique_ptr<cs225::dl_list<int>::node,
  124. std::__1::default_delete<cs225::dl_list<int>::node> >' for 1st argument
  125. class _LIBCPP_TYPE_VIS_ONLY unique_ptr
  126. ^
  127. /class/cs225/lm35/bin/../include/c++/v1/memory:2544:47: note: candidate function
  128. not viable: no known conversion from 'cs225::dl_list<int>::node *' to
  129. 'std::__1::unique_ptr<cs225::dl_list<int>::node,
  130. std::__1::default_delete<cs225::dl_list<int>::node> >' for 1st argument
  131. _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(unique_ptr&& __u...
  132. ^
  133. /class/cs225/lm35/bin/../include/c++/v1/memory:2600:43: note: candidate function
  134. not viable: no known conversion from 'cs225::dl_list<int>::node *' to
  135. 'nullptr_t' for 1st argument
  136. _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(nullptr_t) _NOEXCEPT
  137. ^
  138. /class/cs225/lm35/bin/../include/c++/v1/memory:2560:13: note: candidate template
  139. ignored: could not match 'unique_ptr<type-parameter-0-0,
  140. type-parameter-0-1>' against 'cs225::dl_list<int>::node *'
  141. operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
  142. ^
  143. In file included from src/main.cpp:1:
  144. In file included from include/dl_list.h:265:
  145. include/dl_list.tcc:72:14: error: invalid operands to binary expression
  146. ('cs225::dl_list<epng::rgba_pixel> *' and
  147. 'cs225::dl_list<epng::rgba_pixel>')
  148. if (this != rhs){
  149. ~~~~ ^ ~~~
  150. src/main.cpp:112:9: note: in instantiation of member function
  151. 'cs225::dl_list<epng::rgba_pixel>::operator=' requested here
  152. lst = list_from_image(in);
  153. ^
  154. include/rgba_pixel.h:81:6: note: candidate function not viable: no known
  155. conversion from 'cs225::dl_list<epng::rgba_pixel> *' to
  156. 'const epng::rgba_pixel' for 1st argument
  157. bool operator!=(const epng::rgba_pixel& lhs, const epng::rgba_pixel& rhs);
  158. ^
  159. 11 warnings and 5 errors generated.
  160. make: *** [main.o] Error 1
  161. [flong3@linux-a1 mp_list]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement