It's caused by differences in the way compilers handle templates. Try
doing this instead:
RSAES_PKCS1v15_Encryptor encryptor;
encryptor.AccessKey().Initialize(m, e);
On Tue, Aug 12, 2003 at 01:22:21PM -0700, Scott Maxwell wrote:
> I am trying to upgrade from VC6 to .NET (VC7). If I do this:
>
> void Decrypt(const CryptoPP::Integer& m, const CryptoPP::Integer& e, ...)
> {
> RSAES_PKCS1v15_Encryptor(m,e);
> ...
> }
>
> The compiler complains that it can't find a best match. This works fine
> under VC6 or GCC. If I change 'm' to be non-const, the problem goes away.
>
> Any idea why this is?
>
> Thanks,
>
> Scott Maxwell
> PocketPurchase, Inc.