Jump to content
×
×
  • Create New...
  • 0

compile error game


revengertmt

Question

Hi m2dev!

I want to compile vannilla files...but i have 1 little problem

utils.h:7:39: note: in definition of macro 'IS_SET'
 #define IS_SET(flag, bit)  ((flag) & (bit))
                                       ^
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: error: no matching function for call to 'hash_value(const VID&)'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note: candidates are:
In file included from ../../../Extern/include/boost/intrusive_ptr.hpp:16:0,
                 from event.h:10,
                 from stdafx.h:39,
                 from char_skill.cpp:1:
../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:329:33: note: template<class T> std::size_t boost::hash_value(const boost::intrusive_ptr<T>&)
 template< class T > std::size_t hash_value( boost::intrusive_ptr<T> const & p )
                                 ^
../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:329:33: note:   template argument deduction/substitution failed:
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const boost::intrusive_ptr<T>'
             return hash_value(val);
                                  ^
In file included from ../../../Extern/include/boost/functional/hash.hpp:6:0,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/hash.hpp:256:57: note: template<class T> typename boost::hash_detail::basic_numbers<T>::type boost::hash_value(T)
     typename boost::hash_detail::basic_numbers<T>::type hash_value(T v)
                                                         ^
../../../Extern/include/boost/functional/hash/hash.hpp:256:57: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/hash.hpp: In substitution of 'template<class T> typename boost::hash_detail::basic_numbers<T>::type boost::hash_value(T) [with T = VID]':
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34:   required from 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]'
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:256:57: error: no type named 'type' in 'struct boost::hash_detail::basic_numbers<VID>'
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:262:56: note: template<class T> typename boost::hash_detail::long_numbers<T>::type boost::hash_value(T)
     typename boost::hash_detail::long_numbers<T>::type hash_value(T v)
                                                        ^
../../../Extern/include/boost/functional/hash/hash.hpp:262:56: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/hash.hpp: In substitution of 'template<class T> typename boost::hash_detail::long_numbers<T>::type boost::hash_value(T) [with T = VID]':
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34:   required from 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]'
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:262:56: error: no type named 'type' in 'struct boost::hash_detail::long_numbers<VID>'
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:268:57: note: template<class T> typename boost::hash_detail::ulong_numbers<T>::type boost::hash_value(T)
     typename boost::hash_detail::ulong_numbers<T>::type hash_value(T v)
                                                         ^
../../../Extern/include/boost/functional/hash/hash.hpp:268:57: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/hash.hpp: In substitution of 'template<class T> typename boost::hash_detail::ulong_numbers<T>::type boost::hash_value(T) [with T = VID]':
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34:   required from 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]'
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:268:57: error: no type named 'type' in 'struct boost::hash_detail::ulong_numbers<VID>'
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:275:9: note: template<class T> typename boost::enable_if<boost::is_enum<T>, unsigned int>::type boost::hash_value(T)
         hash_value(T v)
         ^
../../../Extern/include/boost/functional/hash/hash.hpp:275:9: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/hash.hpp: In substitution of 'template<class T> typename boost::enable_if<boost::is_enum<T>, unsigned int>::type boost::hash_value(T) [with T = VID]':
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34:   required from 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]'
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:275:9: error: no type named 'type' in 'struct boost::enable_if<boost::is_enum<VID>, unsigned int>'
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:282:36: note: template<class T> std::size_t boost::hash_value(T* const&)
     template <class T> std::size_t hash_value(T* const& v)
                                    ^
../../../Extern/include/boost/functional/hash/hash.hpp:282:36: note:   template argument deduction/substitution failed:
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   mismatched types 'T* const' and 'const VID'
             return hash_value(val);
                                  ^
In file included from ../../../Extern/include/boost/functional/hash.hpp:6:0,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/hash.hpp:370:24: note: template<class T, unsigned int N> std::size_t boost::hash_value(const T (&)[N])
     inline std::size_t hash_value(const T (&x)[N])
                        ^
../../../Extern/include/boost/functional/hash/hash.hpp:370:24: note:   template argument deduction/substitution failed:
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   mismatched types 'const T [N]' and 'const VID'
             return hash_value(val);
                                  ^
In file included from ../../../Extern/include/boost/functional/hash.hpp:6:0,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/hash.hpp:376:24: note: template<class T, unsigned int N> std::size_t boost::hash_value(T (&)[N])
     inline std::size_t hash_value(T (&x)[N])
                        ^
../../../Extern/include/boost/functional/hash/hash.hpp:376:24: note:   template argument deduction/substitution failed:
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   mismatched types 'T [N]' and 'const VID'
             return hash_value(val);
                                  ^
In file included from ../../../Extern/include/boost/functional/hash.hpp:6:0,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/hash.hpp:383:24: note: template<class Ch, class A> std::size_t boost::hash_value(const std::basic_string<Ch, std::char_traits<_CharT>, A>&)
     inline std::size_t hash_value(
                        ^
../../../Extern/include/boost/functional/hash/hash.hpp:383:24: note:   template argument deduction/substitution failed:
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::basic_string<Ch, std::char_traits<_CharT>, A>'
             return hash_value(val);
                                  ^
In file included from ../../../Extern/include/boost/functional/hash.hpp:6:0,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/hash.hpp:390:57: note: template<class T> typename boost::hash_detail::float_numbers<T>::type boost::hash_value(T)
     typename boost::hash_detail::float_numbers<T>::type hash_value(T v)
                                                         ^
../../../Extern/include/boost/functional/hash/hash.hpp:390:57: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/hash.hpp: In substitution of 'template<class T> typename boost::hash_detail::float_numbers<T>::type boost::hash_value(T) [with T = VID]':
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34:   required from 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]'
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:390:57: error: no type named 'type' in 'struct boost::hash_detail::float_numbers<VID>'
../../../Extern/include/boost/functional/hash/extensions.hpp: In instantiation of 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599:24:   required from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>; T = VID; SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:768:63:   required from 'std::size_t boost::unordered::detail::table<Types>::hash(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; std::size_t = unsigned int; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/detail/table.hpp:794:38:   required from 'boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_node(const key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >; boost::unordered::detail::table<Types>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; typename Types::node = boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> >; boost::unordered::detail::table<Types>::key_type = VID]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1213:34:   required from 'boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const key_type&) [with K = VID; T = unsigned int; H = boost::hash<VID>; P = std::equal_to<VID>; A = std::allocator<std::pair<const VID, unsigned int> >; boost::unordered::unordered_map<K, T, H, P, A>::iterator = boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const VID, unsigned int> > >; boost::unordered::unordered_map<K, T, H, P, A>::key_type = VID]'
char_skill.cpp:3622:103:   required from here
../../../Extern/include/boost/functional/hash/hash.hpp:396:24: note: std::size_t boost::hash_value(std::type_index)
     inline std::size_t hash_value(std::type_index v)
                        ^
../../../Extern/include/boost/functional/hash/hash.hpp:396:24: note:   no known conversion for argument 1 from 'const VID' to 'std::type_index'
In file included from ../../../Extern/include/boost/functional/hash/hash.hpp:558:0,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:21,
                 from ../../../Extern/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from char_skill.cpp:7:
../../../Extern/include/boost/functional/hash/extensions.hpp:67:17: note: template<class A, class B> std::size_t boost::hash_value(const std::pair<_T1, _T2>&)
     std::size_t hash_value(std::pair<A, B> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:67:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::pair<_T1, _T2>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:76:17: note: template<class T, class A> std::size_t boost::hash_value(const std::vector<_Tp, _Alloc>&)
     std::size_t hash_value(std::vector<T, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:76:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::vector<_Tp, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:82:17: note: template<class T, class A> std::size_t boost::hash_value(const std::list<_Tp, _Alloc>&)
     std::size_t hash_value(std::list<T, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:82:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::list<_Tp, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:88:17: note: template<class T, class A> std::size_t boost::hash_value(const std::deque<_Tp, _Alloc>&)
     std::size_t hash_value(std::deque<T, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:88:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::deque<_Tp, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:94:17: note: template<class K, class C, class A> std::size_t boost::hash_value(const std::set<_Key, _Compare, _Alloc>&)
     std::size_t hash_value(std::set<K, C, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:94:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::set<_Key, _Compare, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:100:17: note: template<class K, class C, class A> std::size_t boost::hash_value(const std::multiset<_Key, _Compare, _Alloc>&)
     std::size_t hash_value(std::multiset<K, C, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:100:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::multiset<_Key, _Compare, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:106:17: note: template<class K, class T, class C, class A> std::size_t boost::hash_value(const std::map<_Key, _Tp, _Compare, _Alloc>&)
     std::size_t hash_value(std::map<K, T, C, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:106:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::map<_Key, _Tp, _Compare, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:112:17: note: template<class K, class T, class C, class A> std::size_t boost::hash_value(const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
     std::size_t hash_value(std::multimap<K, T, C, A> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:112:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Alloc>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:118:17: note: template<class T> std::size_t boost::hash_value(const std::complex<_Tp>&)
     std::size_t hash_value(std::complex<T> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:118:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::complex<_Tp>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:128:17: note: template<class T, unsigned int N> std::size_t boost::hash_value(const std::array<_Tp, _Nm>&)
     std::size_t hash_value(std::array<T, N> const& v)
                 ^
../../../Extern/include/boost/functional/hash/extensions.hpp:128:17: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::array<_Tp, _Nm>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:163:24: note: template<class ... T> std::size_t boost::hash_value(const std::tuple<_Args1 ...>&)
     inline std::size_t hash_value(std::tuple<T...> const& v)
                        ^
../../../Extern/include/boost/functional/hash/extensions.hpp:163:24: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::tuple<_Args1 ...>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:193:24: note: template<class T> std::size_t boost::hash_value(const std::shared_ptr<_Tp1>&)
     inline std::size_t hash_value(std::shared_ptr<T> const& x) {
                        ^
../../../Extern/include/boost/functional/hash/extensions.hpp:193:24: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::shared_ptr<_Tp1>'
             return hash_value(val);
                                  ^
../../../Extern/include/boost/functional/hash/extensions.hpp:198:24: note: template<class T, class Deleter> std::size_t boost::hash_value(const std::unique_ptr<_Tp, _Dp>&)
     inline std::size_t hash_value(std::unique_ptr<T, Deleter> const& x) {
                        ^
../../../Extern/include/boost/functional/hash/extensions.hpp:198:24: note:   template argument deduction/substitution failed:
../../../Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
             return hash_value(val);

can help me???

 

Edited by revengertmt
edited
Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 2

      Problem freebsd

    2. 0

      Making chain quest

    3. 4

      Ludus2: a metin2-like browser game

    4. 6
    5. 9

      Help in implementing a switch bot

    6. 0

      Special Inventory System Can't Sell To Npc's

    7. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    8. 75

      Services - System Ard [C ++ / Python / Lua]

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.