Problem (with fix) concerning GMP's C++ random number class

Kevin Ryde user42@zip.com.au
Thu, 07 Nov 2002 08:34:14 +1000


Roberto Bagnara <bagnara@cs.unipr.it> writes:
>
> a strictly conforming C++ compiler,

For instance?  g++ 3.2 -pedantic has no objections to the current
code.

> + extern "C" typedef void GMP_RANDINIT_DEFAULT(gmp_randstate_t);

Can this be private to gmp_randclass, or given within the definitions
of the constructors?  If not then they'll want to be prefixed like
__gmp_randinit_default_t, or some such.