Fixes for FT=mpq_class.

In particular, the constructor from std::string is explicit.
test_nef_3_io_EPEC is still broken because of that.
This commit is contained in:
Marc Glisse 2016-10-14 00:37:11 +02:00
parent 2868790cf4
commit 030d81e3f7
3 changed files with 7 additions and 7 deletions

View File

@ -159,7 +159,7 @@ namespace internal {
return -sides[SIDE].y()*alpha + sides[SIDE].x()*beta;
default:
CGAL_error();
return typename K::FT(0.);
return typename K::FT(0);
}
}
@ -192,8 +192,8 @@ namespace internal {
typename K::Point_3 p_min, p_max;
get_min_max<K, AXE>(AXE==0? 0: AXE==1? sides[SIDE].z(): -sides[SIDE].y(),
AXE==0? -sides[SIDE].z(): AXE==1? 0: sides[SIDE].x(),
AXE==0? sides[SIDE].y(): AXE==1? -sides[SIDE].x(): 0,
bbox, p_min, p_max);
AXE==0? sides[SIDE].y(): AXE==1? -sides[SIDE].x():
typename K::FT(0), bbox, p_min, p_max);
switch ( AXE )
{

View File

@ -23,8 +23,8 @@ void test_write_read()
typedef CGAL::Polyhedron_3< Kernel > Polyhedron;
typedef typename Kernel::Point_3 Point;
typename Kernel::RT n( std::string("6369051672525773"));
typename Kernel::RT d( std::string("4503599627370496"));
typename Kernel::RT n(RT(std::string("6369051672525773")));
typename Kernel::RT d(RT(std::string("4503599627370496")));
Point p(n, 0, 0, d);
Point q(0, n, 0, d);

View File

@ -23,8 +23,8 @@ void test_write_read()
typedef CGAL::Polyhedron_3< Kernel > Polyhedron;
typedef typename Kernel::Point_3 Point;
typename Kernel::RT n( std::string("6369051672525773"));
typename Kernel::RT d( std::string("4503599627370496"));
typename Kernel::RT n(RT(std::string("6369051672525773")));
typename Kernel::RT d(RT(std::string("4503599627370496")));
Point p(n, 0, 0, d);
Point q(0, n, 0, d);