Hi,

I am getting the error below when I compile the crypto++ code in debug
mode in VS2010. In release mode it compiles fine (having made some
changes, which match some of the VS2010 posts in this forum).

In the debug mode there is some extra iterator checking which
complains about a parameter mismatch.

The code which is causing problems (error message below) in the file
zinflate.h is:

std::vector<CodeInfo, AllocatorWithCleanup<CodeInfo> > m_codeToValue;

Any ideas?

Thanks

Grainne

ERROR MESSAGE:

c:\program files\microsoft visual studio 10.0\vc\include\vector(441):
error C2664:
'CryptoPP::AllocatorWithCleanup<T>::AllocatorWithCleanup(const
CryptoPP::AllocatorWithCleanup<T> &)' : cannot convert parameter 1
from 'CryptoPP::AllocatorWithCleanup<T>' to 'const
CryptoPP::AllocatorWithCleanup<T> &'

with
[T=std::_Container_proxy]
and
[T=CryptoPP::HuffmanDecoder::CodeInfo]
and
 [T=std::_Container_proxy]

Reason: cannot convert from 'CryptoPP::AllocatorWithCleanup<T>' to
'const CryptoPP::AllocatorWithCleanup<T>'

with
[ T=CryptoPP::HuffmanDecoder::CodeInfo]
and
[T=std::_Container_proxy]

No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called

c:\program files\microsoft visual studio 10.0\vc\include\vector(437) :
while compiling class template member function
'std::_Vector_val<_Ty,_Alloc>::_Vector_val(_Alloc)' with

[ _Ty=CryptoPP::HuffmanDecoder::CodeInfo,
_Alloc=CryptoPP::AllocatorWithCleanup<CryptoPP::HuffmanDecoder::CodeInfo>]

c:\program files\microsoft visual studio 10.0\vc\include\vector(481) :
see reference to class template instantiation
'std::_Vector_val<_Ty,_Alloc>' being compiled
with
[_Ty=CryptoPP::HuffmanDecoder::CodeInfo,_Alloc=CryptoPP::AllocatorWithCleanup<CryptoPP::HuffmanDecoder::CodeInfo>]
c:\documents and settings\o2ong0\my documents\visual studio
2010\projects\qfcserver_2005\crypto\zinflate.h(84) : see reference to
class template instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[ 
_Ty=CryptoPP::HuffmanDecoder::CodeInfo,_Ax=CryptoPP::AllocatorWithCleanup<CryptoPP::HuffmanDecoder::CodeInfo>
 ]

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to