Hi Brian,

I included the header in an existing project, which already had <cstdint>
indeed, did your test, and hoppa.

Isn't the base of the problem in the fact that the overloads of

void *mpz_set_ui* (mpz_t rop, unsigned long int op)
void *mpz_set_si* (mpz_t rop, signed long int op)

have signatures with (unsigned) long long int, while signatures of the
functions have *unsigned long int.*
**
*degski.*



On 14 August 2013 13:54, Brian Gladman <b...@gladman.plus.com> wrote:

> On 14/08/2013 11:06, degski wrote:
> > Hi Brian,
> >
> > It does fail for me though:
> >
> > Z:\VC\x64\include\mpirxx.h(1596): error : invalid redeclaration of member
> > function "__gmp_expr<mpz_t, mpz_t>::__gmp_expr(__int64)" (declared at
> line
> > 1590)
> >       __gmp_expr(intmax_t l) { mpz_init_set_sx(mp, l); }
> >       ^
> >
> > Z:\VC\x64\include\mpirxx.h(1597): error : invalid redeclaration of member
> > function "__gmp_expr<mpz_t, mpz_t>::__gmp_expr(unsigned __int64)"
> (declared
> > at line 1591)
> >       __gmp_expr(uintmax_t l) { mpz_init_set_ux(mp, l); }
> >       ^
> > This already happens when just including the header mpirxx.h in a project
> > (VS2012/release/x64).
>
> Looking at the tests, there is no test that checks things when <cstdint>
> is included.  I suspect that this is why I don't see these errors.
>
>    Brian
>
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mpir-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to mpir-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/mpir-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Sign the petition:
https://optin.stopwatching.us/<https://optin.stopwatching.us/>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to