Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [flong3@linux-a1 mp_list]$ make
- clang++ -Iinclude -std=c++14 -stdlib=libc++ -c -g -O1 -Wall -Wextra src/main.cpp
- In file included from src/main.cpp:1:
- In file included from include/dl_list.h:265:
- include/dl_list.tcc:63:31: warning: unused parameter 'other'
- [-Wunused-parameter]
- dl_list<T>::dl_list(dl_list&& other)
- ^
- include/dl_list.tcc:81:32: warning: unused parameter 'other'
- [-Wunused-parameter]
- void dl_list<T>::swap(dl_list& other)
- ^
- include/dl_list.tcc:87:30: warning: unused parameter 'data' [-Wunused-parameter]
- void dl_list<T>::push_back(T data)
- ^
- include/dl_list.tcc:119:49: warning: unused parameter 'first'
- [-Wunused-parameter]
- void dl_list<T>::reverse(std::unique_ptr<node>& first, node*& last)
- ^
- include/dl_list.tcc:119:63: warning: unused parameter 'last'
- [-Wunused-parameter]
- void dl_list<T>::reverse(std::unique_ptr<node>& first, node*& last)
- ^
- include/dl_list.tcc:152:39: warning: unused parameter 'n' [-Wunused-parameter]
- void dl_list<T>::reverse_nth(unsigned n)
- ^
- include/dl_list.tcc:208:30: warning: unused parameter 'start'
- [-Wunused-parameter]
- auto dl_list<T>::split(node* start, unsigned split_point)
- ^
- include/dl_list.tcc:229:46: warning: unused parameter 'first'
- [-Wunused-parameter]
- auto dl_list<T>::merge(std::unique_ptr<node> first,
- ^
- include/dl_list.tcc:230:46: warning: unused parameter 'second'
- [-Wunused-parameter]
- std::unique_ptr<node> second) -> std::unique_ptr<node>
- ^
- include/dl_list.tcc:247:50: warning: unused parameter 'start'
- [-Wunused-parameter]
- auto dl_list<T>::mergesort(std::unique_ptr<node> start, uint64_t length)
- ^
- include/dl_list.tcc:247:66: warning: unused parameter 'length'
- [-Wunused-parameter]
- auto dl_list<T>::mergesort(std::unique_ptr<node> start, uint64_t length)
- ^
- include/dl_list.tcc:98:13: error: object of type
- 'std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
- std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' cannot
- be assigned because its copy assignment operator is implicitly deleted
- a->next = head_;
- ^
- src/main.cpp:20:22: note: in instantiation of member function
- 'cs225::dl_list<epng::rgba_pixel>::push_front' requested here
- list.push_front(*img(i, j));
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2515:31: note: copy assignment
- operator is implicitly deleted because
- 'unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
- std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' has a
- user-declared move constructor
- _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
- ^
- In file included from src/main.cpp:1:
- In file included from include/dl_list.h:265:
- include/dl_list.tcc:99:10: error: no viable overloaded '='
- head_=a;
- ~~~~~^~
- /class/cs225/lm35/bin/../include/c++/v1/memory:2459:29: note: candidate function
- (the implicit copy assignment operator) not viable: no known conversion
- from 'cs225::dl_list<epng::rgba_pixel>::node *' to 'const
- std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
- std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' for
- 1st argument
- class _LIBCPP_TYPE_VIS_ONLY unique_ptr
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2544:47: note: candidate function
- not viable: no known conversion from
- 'cs225::dl_list<epng::rgba_pixel>::node *' to
- 'std::__1::unique_ptr<cs225::dl_list<epng::rgba_pixel>::node,
- std::__1::default_delete<cs225::dl_list<epng::rgba_pixel>::node> >' for
- 1st argument
- _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(unique_ptr&& __u...
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2600:43: note: candidate function
- not viable: no known conversion from
- 'cs225::dl_list<epng::rgba_pixel>::node *' to 'nullptr_t' for 1st argument
- _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(nullptr_t) _NOEXCEPT
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2560:13: note: candidate template
- ignored: could not match 'unique_ptr<type-parameter-0-0,
- type-parameter-0-1>' against 'cs225::dl_list<epng::rgba_pixel>::node *'
- operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
- ^
- In file included from src/main.cpp:1:
- In file included from include/dl_list.h:265:
- include/dl_list.tcc:98:13: error: object of type
- 'std::__1::unique_ptr<cs225::dl_list<int>::node,
- std::__1::default_delete<cs225::dl_list<int>::node> >' cannot be assigned
- because its copy assignment operator is implicitly deleted
- a->next = head_;
- ^
- src/main.cpp:65:13: note: in instantiation of member function
- 'cs225::dl_list<int>::push_front' requested here
- lst.push_front(i);
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2515:31: note: copy assignment
- operator is implicitly deleted because
- 'unique_ptr<cs225::dl_list<int>::node,
- std::__1::default_delete<cs225::dl_list<int>::node> >' has a user-declared
- move constructor
- _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
- ^
- In file included from src/main.cpp:1:
- In file included from include/dl_list.h:265:
- include/dl_list.tcc:99:10: error: no viable overloaded '='
- head_=a;
- ~~~~~^~
- /class/cs225/lm35/bin/../include/c++/v1/memory:2459:29: note: candidate function
- (the implicit copy assignment operator) not viable: no known conversion
- from 'cs225::dl_list<int>::node *' to 'const
- std::__1::unique_ptr<cs225::dl_list<int>::node,
- std::__1::default_delete<cs225::dl_list<int>::node> >' for 1st argument
- class _LIBCPP_TYPE_VIS_ONLY unique_ptr
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2544:47: note: candidate function
- not viable: no known conversion from 'cs225::dl_list<int>::node *' to
- 'std::__1::unique_ptr<cs225::dl_list<int>::node,
- std::__1::default_delete<cs225::dl_list<int>::node> >' for 1st argument
- _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(unique_ptr&& __u...
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2600:43: note: candidate function
- not viable: no known conversion from 'cs225::dl_list<int>::node *' to
- 'nullptr_t' for 1st argument
- _LIBCPP_INLINE_VISIBILITY unique_ptr& operator=(nullptr_t) _NOEXCEPT
- ^
- /class/cs225/lm35/bin/../include/c++/v1/memory:2560:13: note: candidate template
- ignored: could not match 'unique_ptr<type-parameter-0-0,
- type-parameter-0-1>' against 'cs225::dl_list<int>::node *'
- operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
- ^
- In file included from src/main.cpp:1:
- In file included from include/dl_list.h:265:
- include/dl_list.tcc:72:14: error: invalid operands to binary expression
- ('cs225::dl_list<epng::rgba_pixel> *' and
- 'cs225::dl_list<epng::rgba_pixel>')
- if (this != rhs){
- ~~~~ ^ ~~~
- src/main.cpp:112:9: note: in instantiation of member function
- 'cs225::dl_list<epng::rgba_pixel>::operator=' requested here
- lst = list_from_image(in);
- ^
- include/rgba_pixel.h:81:6: note: candidate function not viable: no known
- conversion from 'cs225::dl_list<epng::rgba_pixel> *' to
- 'const epng::rgba_pixel' for 1st argument
- bool operator!=(const epng::rgba_pixel& lhs, const epng::rgba_pixel& rhs);
- ^
- 11 warnings and 5 errors generated.
- make: *** [main.o] Error 1
- [flong3@linux-a1 mp_list]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement