Construction From vector<char> ?
Robert Evans
bobsphysics at yahoo.com
Tue Aug 12 19:02:06 CEST 2008
I am trying to migrate some C++ code based on STL vector<char> - based arrays to mpz_class. Is there an efficient way to construct an mpz_class object from a vector<char> without explicitly iterating over the vector? I could not find a constructor based on an STL vector, nor could I find a string constructor based on vector<char> (which I could then feed into mpz_class(const string&) ).
Thanks from a newbie.
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20080812/4872fa3f/attachment.html
More information about the gmp-discuss
mailing list