mirror of https://github.com/CGAL/cgal
Fix mpz_class... with g++
In my understanding, the reason is that the full specialization `Modular_traits<mpz_class>` uses `CGAL::mod`, that its uses `Coercion_traits<A,B>::Type`. That is why the `Coercion_traits` specialization for `__gmp_expr` must be known before.
This commit is contained in:
parent
2f7e66096c
commit
2b8d417b2e
|
|
@ -313,6 +313,8 @@ public:
|
||||||
|
|
||||||
} //namespace CGAL
|
} //namespace CGAL
|
||||||
|
|
||||||
|
#include <CGAL/gmpxx.h>
|
||||||
|
#include <CGAL/gmpxx_coercion_traits.h>
|
||||||
#include <CGAL/Residue.h>
|
#include <CGAL/Residue.h>
|
||||||
#include <CGAL/Modular_traits.h>
|
#include <CGAL/Modular_traits.h>
|
||||||
|
|
||||||
|
|
@ -362,7 +364,4 @@ struct Split_double<mpz_class>
|
||||||
|
|
||||||
#undef CGAL_CHECK_GMP_EXPR
|
#undef CGAL_CHECK_GMP_EXPR
|
||||||
|
|
||||||
#include <CGAL/gmpxx.h>
|
|
||||||
#include <CGAL/gmpxx_coercion_traits.h>
|
|
||||||
|
|
||||||
#endif // CGAL_MPZ_CLASS_H
|
#endif // CGAL_MPZ_CLASS_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue