Construction From vector<char> ?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmp-discuss