gempir

Untitled

Aug 13th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. In file included from ../src/providers/twitch/TwitchChannel.cpp:4:
  2. ../src/common/Common.hpp:38:12: error: no viable conversion from returned value
  3. of type 'shared_ptr<chatterino::Channel>' to function return type
  4. 'std::weak_ptr<TwitchChannel>'
  5. return element->shared_from_this();
  6. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. ../src/providers/twitch/TwitchChannel.cpp:412:23: note: in instantiation of
  8. function template specialization
  9. 'chatterino::weakOf<chatterino::TwitchChannel>' requested here
  10. [this, weak = weakOf(this)](auto result) -> Outcome {
  11. ^
  12. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4901:5: note:
  13. candidate constructor not viable: no known conversion from
  14. 'shared_ptr<chatterino::Channel>' to 'const
  15. std::__1::weak_ptr<chatterino::TwitchChannel> &' for 1st argument
  16. weak_ptr(weak_ptr const& __r) _NOEXCEPT;
  17. ^
  18. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4908:5: note:
  19. candidate constructor not viable: no known conversion from
  20. 'shared_ptr<chatterino::Channel>' to
  21. 'std::__1::weak_ptr<chatterino::TwitchChannel> &&' for 1st argument
  22. weak_ptr(weak_ptr&& __r) _NOEXCEPT;
  23. ^
  24. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4897:51: note:
  25. candidate template ignored: requirement 'is_convertible<Channel *,
  26. TwitchChannel *>::value' was not satisfied
  27. [with _Yp = chatterino::Channel]
  28. template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Y...
  29. ^
  30. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4902:51: note:
  31. candidate template ignored: could not match 'weak_ptr' against
  32. 'shared_ptr'
  33. template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp...
  34. ^
  35. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4909:51: note:
  36. candidate template ignored: could not match 'weak_ptr' against
  37. 'shared_ptr'
  38. template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
  39. ^
  40. 1 warning and 1 error generated.
  41. make: *** [TwitchChannel.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment