Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > ./cs512/c++/cppdef/dsa.cpp:175: error: no matching function for callto

Reply
Thread Tools

./cs512/c++/cppdef/dsa.cpp:175: error: no matching function for callto

 
 
cablepuff@gmail.com
Guest
Posts: n/a
 
      01-16-2008
Hi I have the following error.
../cs512/c++/cppdef/dsa.cpp:175: error: no matching function for call
to 'str_to_numlist(std::back_insert_iterator<std::vec tor<BigInteger,
std::allocator<BigInteger> > >, const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, const BigInteger&)'

Here is the codes

/************************************************** **
* w = (s') ^ -1 mod q *
* u1 = [H(M')w] mod q *
* u2 = (r')w mod q *
* v = [g^u1*y^u2)mod p] mod q *
************************************************** **/
template <class ContainerType>
bool encryptcpw::dsa<ContainerType>::verifying(
typename ContainerType::const_reference y,
typename ContainerType::const_reference rp,
typename ContainerType::const_reference sp,
const std::string& Mp)
{
typedef typename ContainerType::value_type T;
const T digits(std::numeric_limits<T>::digits);
ContainerType myHashTbl;
encryptcpw::str_to_numlist(std::back_inserter(myHa shTbl), Mp,
digits); // error here.
T HM(encryptcpw::MyHash(myHashTbl.begin(), myHashTbl.end(),
digits));
const T w(algocpw::improve_pow(sp, -1)%q);
const T u1((HM*w)%q);
const T u2(rp*w % q);
const T v(
((algocpw::improve_pow(g, u1) * algocpw::improve_pow(y, u2) )
% p ) % q);
return v == rp;
}

// inside StringConversion.hpp
namespace encryptcpw
{
/************************************************** ************
* name: str_to_numlist *
* purpose: converts a string into sequence of list *
* @param s the string to convert. *
* @param bound the bound of elements with bound >= 256. *
* @return a list of integer *
************************************************** *************/
template <typename OutputIterator>
OutputIterator str_to_numlist(OutputIterator OutIt, const
std::string& s, typename OutputIterator::value_type bound);
}

// inside StringConversiondef.hpp
template <typename OutputIterator>
OutputIterator encryptcpw::str_to_numlist(OutputIterator OutIt, const
std::string& s, typename OutputIterator::value_type bound)
{
//...
}
What is wrong?
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      01-16-2008
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi I have the following error.
> ./cs512/c++/cppdef/dsa.cpp:175: error: no matching function for call
> to 'str_to_numlist(std::back_insert_iterator<std::vec tor<BigInteger,
> std::allocator<BigInteger> > >, const std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, const BigInteger&)'


Are you sure that the 'value_type' type of 'back_insert_iterator'
is the same as 'BigInteger'?

> [..]
> // inside StringConversiondef.hpp
> template <typename OutputIterator>
> OutputIterator encryptcpw::str_to_numlist(OutputIterator OutIt, const
> std::string& s, typename OutputIterator::value_type bound)
> {
> //...
> }
> What is wrong?


Not sure. Can you distill it to a simple sample without all the
namespaces and BigIntegers?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skype callto feature Bryan UK VOIP 1 05-29-2007 11:10 AM
payed Voip, computer to phone. Best call quality, not price??? CAllto the US only is fine. Daniel NZ Computing 0 02-26-2006 08:17 AM
Check for callto: protocol support using javascript Alexander Javascript 4 01-10-2006 10:28 PM
Another try: callto:// link Roman Zhovtulya VOIP 0 02-12-2005 03:29 PM
Starting another application from a "callto" link Roman Zhovtulya VOIP 0 02-09-2005 06:36 PM



Advertisments