Boost logo

Boost :

From: Paul Jensen (pdjensen_at_[hidden])
Date: 2000-03-19 12:26:38


The error messages I get using the STLport of SGI's std library are a bit more
informative, but I'm still at a loss:

--------------------Configuration: Ownership - Win32 Debug--------------------
Compiling...
test_shared_ptr.cpp

e:\stlport\stl_function.h(110) : error C2784: 'bool __cdecl stlport::operator
<(const class stlport::multiset<_Key,_Compare,_Alloc> &,const class
stlport::multiset<_Key,_Compare,_Alloc> &)' : could not deduce template argument
for 'const class stlpo
rt::multiset<_Key,_Compare,_Alloc> &' from 'const class boost::shared_ptr<int>'

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
e:\stlport\stl_function.h(110) : error C2784: 'bool __cdecl stlport::operator
<(const class stlport::set<_Key,_Compare,_Alloc> &,const class
stlport::set<_Key,_Compare,_Alloc> &)' : could not deduce template argument for
'const class stlport::set<_K
ey,_Compare,_Alloc> &' from 'const class boost::shared_ptr<int>'

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
e:\stlport\stl_function.h(110) : error C2784: 'bool __cdecl stlport::operator
<(const class stlport::_Rb_tree<_Key,_Value,_KeyOfValue,_Compare,_Alloc> &,const
class stlport::_Rb_tree<_Key,_Value,_KeyOfValue,_Compare,_Alloc> &)' : could not
deduce te
mplate argument for 'const class
stlport::_Rb_tree<_Key,_Value,_KeyOfValue,_Compare,_Alloc> &' from 'const class
boost::shared_ptr<int>'

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
e:\stlport\stl_function.h(110) : error C2784: 'bool __cdecl stlport::operator
<(const class
stlport::reverse_iterator<_RandomAccessIterator,_Tp,_Reference,_Pointer,_Distance>
&,const class stlport::reverse_iterator<_RandomAccessIterator,_Tp,_Referen
ce,_Pointer,_Distance> &)' : could not deduce template argument for 'const class
stlport::reverse_iterator<_RandomAccessIterator,_Tp,_Reference,_Pointer,_Distance>
&' from 'const class boost::shared_ptr<int>'

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
e:\stlport\stl_function.h(110) : error C2784: 'bool __cdecl stlport::operator
<(const struct stlport::pair<_T1,_T2> &,const struct stlport::pair<_T1,_T2> &)'
: could not deduce template argument for 'const struct stlport::pair<_T1,_T2> &'
from 'cons
t class boost::shared_ptr<int>'

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
e:\stlport\stl_function.h(110) : error C2676: binary '<' : 'const class
boost::shared_ptr<int>' does not define this operator or a conversion to a type
acceptable to the predefined operator

e:\stlport\stl_function.h(110) : while compiling class-template member function
'bool __thiscall stlport::less<class boost::shared_ptr<int> >::operator ()(const
class boost::shared_ptr<int> &,const class boost::shared_ptr<int> &) const'
Error executing cl.exe.

test_shared_ptr.obj - 6 error(s), 0 warning(s)

-- 
Paul Jensen	Agile Image Movers	http://agileimage.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk