ucrmk / memcacheclient

Automatically exported from code.google.com/p/memcacheclient
0 stars 0 forks source link

r25 fails to compile on MSVC2010 #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
'i' is an iterator of the wrong type. The attached patch corrects this. Here is 
the error log that was being generated:

memcacheclient-read-only\memcacheclient.cpp(380): error C2679: binary '=' : no 
operator found which takes a right-hand operand of type 
'std::_Vector_iterator<_Myvec>' (or there is no acceptable conversion)
1>          with
1>          [
1>              
_Myvec=std::_Vector_val<MemCacheClient::ConsistentHash,std::allocator<MemCacheCl
ient::ConsistentHash>>
1>          ]
1>          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\vector(388): could be 'std::_Vector_iterator<_Myvec> 
&std::_Vector_iterator<_Myvec>::operator =(const std::_Vector_iterator<_Myvec> 
&)'
1>          with
1>          [
1>              _Myvec=std::_Vector_val<MemCacheClient::Server 
*,std::allocator<MemCacheClient::Server *>>
1>          ]
1>          while trying to match the argument list 
'(std::_Vector_iterator<_Myvec>, std::_Vector_iterator<_Myvec>)'
1>          with
1>          [
1>              _Myvec=std::_Vector_val<MemCacheClient::Server 
*,std::allocator<MemCacheClient::Server *>>
1>          ]
1>          and
1>          [
1>              
_Myvec=std::_Vector_val<MemCacheClient::ConsistentHash,std::allocator<MemCacheCl
ient::ConsistentHash>>
1>          ]
1>d:\code\oss\memcacheclient-read-only\memcacheclient.cpp(381): error C2664: 
'std::_Vector_iterator<_Myvec> 
std::vector<_Ty>::erase(std::_Vector_const_iterator<_Myvec>,std::_Vector_const_i
terator<_Myvec>)' : cannot convert parameter 2 from 
'std::_Vector_iterator<_Myvec>' to 'std::_Vector_const_iterator<_Myvec>'
1>          with
1>          [
1>              
_Myvec=std::_Vector_val<MemCacheClient::ConsistentHash,std::allocator<MemCacheCl
ient::ConsistentHash>>,
1>              _Ty=MemCacheClient::ConsistentHash
1>          ]
1>          and
1>          [
1>              _Myvec=std::_Vector_val<MemCacheClient::Server 
*,std::allocator<MemCacheClient::Server *>>
1>          ]
1>          and
1>          [
1>              
_Myvec=std::_Vector_val<MemCacheClient::ConsistentHash,std::allocator<MemCacheCl
ient::ConsistentHash>>
1>          ]
1>          No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called

Original issue reported on code.google.com by andy...@gmail.com on 10 May 2013 at 2:03

Attachments: