ContainerType rsa_encrypt_lis t(const std::string&, const typename
ContainerType:: reference, const typename ContainerType:: reference);
const BigInteger e(boost::lexica l_cast<BigInteg er>(rsa_encrypt s[2]));
const BigInteger
n(boost::lexica l_cast<BigInteg er>(rsa_encrypt s[1]));
std::string infile(rsa_encr ypts[0]);
boost::scoped_p tr<boost::files ystem::ifstream encrypt_input(n ew
boost::filesyst em::ifstream(in file));
const std::string
plaintext(std:: istreambuf_iter ator<char>(encr ypt_input->rdbuf()),
std::istreambuf _iterator<char> ());
std::list<BigIn teger>
decrypted_list( encryptcpw::rsa _encrypt_list<s td::list<BigInt eger>
>(plaintext, e, n)); // this is line 64.std::vector<Big Integer>(cipher text).swap(ciph ertext);
// ... some code in between.
const std::string answer(encryptc pw::rsa_decrypt _list(ciphertex t, d,
n)); // this is line 102.
error on gcc:
../cs512/c++/RsaEncrypt.cpp: 64: error: no matching function for call to
'rsa_encr
ypt_list(const std::string&, const BigInteger&, const BigInteger&)'
../cs512/c++/RsaEncrypt.cpp: 102: error: no matching function for call
to 'rsa_dec
rypt_list(std:: vector<BigInteg er, std::allocator< BigInteger&, const
BigIntege
r&, const BigInteger&)'
error on msvc:
../cs512/c++/RsaEncrypt.cpp( 64) : error C2664:
'encryptcpw::rs a_encrypt_list' : cannot convert parameter 2 from
'const BigInteger' to 'BigInteger &'
Conversion loses qualifiers
Anybody know how to fix this.