twanvl / MagicSetEditor2

Magic Set Editor is a program for designing trading cards
Other
111 stars 41 forks source link

Linux "use of a deleted function" #169

Open unijorse opened 1 year ago

unijorse commented 1 year ago

I have no idea what any of this means

/usr/include/c++/9/bits/hashtable_policy.h:1382:16: error: static assertion failed: hash function must be invocable with an argument of key type 1382 | static_assert(is_invocable<const _H1&, const _Key&>{}, | ^~~~~~~~~ /usr/include/c++/9/bits/hashtable_policy.h:1384:16: error: no match for call to ‘(const std::hash) (const wxString&)’ 1384 | return _M_h1()(k); | ~^~~ In file included from /usr/include/c++/9/unordered_map:46, from /usr/include/c++/9/functional:61, from /usr/include/boost/config/no_tr1/functional.hpp:21, from /usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/jack/Desktop/build/src/util/smart_ptr.hpp:34, from /home/jack/Desktop/build/src/util/prec.hpp:92, from /home/jack/Desktop/build/CMakeFiles/magicseteditor.dir/cmake_pch.hxx:5, from : /usr/include/c++/9/bits/hashtable.h: In instantiation of ‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::~_Hashtable() [with _Key = wxString; _Value = std::pair<const wxString, wxString>; _Alloc = std::allocator<std::pair<const wxString, wxString> >; _ExtractKey = std::detail::_Select1st; _Equal = std::equal_to; _H1 = std::hash; _H2 = std::detail::_Mod_range_hashing; _Hash = std::detail::_Default_ranged_hash; _RehashPolicy = std::detail::_Prime_rehash_policy; _Traits = std::detail::_Hashtable_traits<true, false, true>]’: /usr/include/c++/9/bits/unordered_map.h:102:11: required from ‘void IntrusivePtrBase::destroy() const [with T = SubLocale]’ /home/jack/Desktop/build/src/util/smart_ptr.hpp:60:5: required from ‘void intrusive_ptr_release(const IntrusivePtrBase*) [with T = SubLocale]’ /usr/include/boost/smart_ptr/intrusive_ptr.hpp:98:44: required from ‘boost::intrusive_ptr::~intrusive_ptr() [with T = SubLocale]’ /home/jack/Desktop/build/src/data/locale.cpp:62:61: required from here /usr/include/c++/9/bits/hashtable.h:1389:5: error: use of deleted function ‘std::detail::_Hashtable_base<wxString, std::pair<const wxString, wxString>, std::detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()’

unijorse commented 1 year ago

this bit seems to be the main issue /usr/include/c++/9/bits/hashtable.h:1389:5: error: use of deleted function ‘std::detail::_Hashtable_base<wxString, std::pair<const wxString, wxString>, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::detail::_Hashtable_traits<true, false, true> >::_Hashtable_base()’ how would i fix it?