Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from ../src/providers/twitch/TwitchChannel.cpp:4:
- ../src/common/Common.hpp:38:12: error: no viable conversion from returned value
- of type 'shared_ptr<chatterino::Channel>' to function return type
- 'std::weak_ptr<TwitchChannel>'
- return element->shared_from_this();
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ../src/providers/twitch/TwitchChannel.cpp:412:23: note: in instantiation of
- function template specialization
- 'chatterino::weakOf<chatterino::TwitchChannel>' requested here
- [this, weak = weakOf(this)](auto result) -> Outcome {
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4901:5: note:
- candidate constructor not viable: no known conversion from
- 'shared_ptr<chatterino::Channel>' to 'const
- std::__1::weak_ptr<chatterino::TwitchChannel> &' for 1st argument
- weak_ptr(weak_ptr const& __r) _NOEXCEPT;
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4908:5: note:
- candidate constructor not viable: no known conversion from
- 'shared_ptr<chatterino::Channel>' to
- 'std::__1::weak_ptr<chatterino::TwitchChannel> &&' for 1st argument
- weak_ptr(weak_ptr&& __r) _NOEXCEPT;
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4897:51: note:
- candidate template ignored: requirement 'is_convertible<Channel *,
- TwitchChannel *>::value' was not satisfied
- [with _Yp = chatterino::Channel]
- template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Y...
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4902:51: note:
- candidate template ignored: could not match 'weak_ptr' against
- 'shared_ptr'
- template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp...
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4909:51: note:
- candidate template ignored: could not match 'weak_ptr' against
- 'shared_ptr'
- template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
- ^
- 1 warning and 1 error generated.
- make: *** [TwitchChannel.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment