Thanks man!
Code: Select all
[SRC] Compiling spritecache.cpp
In file included from /Users/koevoets/Downloads/source/src/spritecache.cpp:19:
In file included from /Users/koevoets/Downloads/source/src/blitter/factory.hpp:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:442:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:18:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:719:71: error:
invalid operands to binary expression ('const SpriteInfo' and
'const SpriteInfo')
bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}
~~~ ^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:4973:13: note:
in instantiation of member function 'std::__1::__less<SpriteInfo,
SpriteInfo>::operator()' requested here
if (__comp(*__ptr, *--__last))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:5001:5: note:
in instantiation of function template specialization
'std::__1::__sift_up<std::__1::__less<SpriteInfo, SpriteInfo> &,
std::__1::__wrap_iter<SpriteInfo *> >' requested here
__sift_up<_Comp_ref>(__first, __last, __comp, __last - __first);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:5010:12: note:
in instantiation of function template specialization
'std::__1::push_heap<std::__1::__wrap_iter<SpriteInfo *>,
std::__1::__less<SpriteInfo, SpriteInfo> >' requested here
_VSTD::push_heap(__first, __last, __less<typename iterator_traits<_R...
^
/Users/koevoets/Downloads/source/src/spritecache.cpp:680:8: note: in
instantiation of function template specialization
'std::__1::push_heap<std::__1::__wrap_iter<SpriteInfo *> >' requested here
std::push_heap(candidates.begin(), candidates.end());
^
/Users/koevoets/Downloads/source/src/spritecache.cpp:670:8: note: candidate
function not viable: 'this' argument has type 'const SpriteInfo', but
method is not marked const
bool operator<(const SpriteInfo &other)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:567:1: note:
candidate template ignored: could not match 'pair<type-parameter-0-0,
type-parameter-0-1>' against 'const SpriteInfo'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:706:1: note:
candidate template ignored: could not match
'reverse_iterator<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_I...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1125:1: note:
candidate template ignored: could not match
'move_iterator<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1494:1: note:
candidate template ignored: could not match
'__wrap_iter<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:1187:1: note:
candidate template ignored: could not match 'tuple<type-parameter-0-0...>'
against 'const SpriteInfo'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2874:1: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
'const SpriteInfo'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2932:1: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
'const SpriteInfo'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2941:1: note:
candidate template ignored: could not match
'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
'const SpriteInfo'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4702:1: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4767:1: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4775:1: note:
candidate template ignored: could not match
'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
1 error generated.
make[1]: *** [spritecache.o] Error 1
make: *** [all] Error 1