cgal/Cartesian_kernel/include/CGAL/Cartesian
Laurent Rineau 3e4fcd8d90 Fix compilation error with gmpxx
That is a follow-up to the following commit:

> commit 6b51b12ab5
> Author: Laurent Rineau <laurent.rineau@cgal.org>
> Date:   Fri Oct 4 16:42:13 2013 +0200
>
>     Fix the case when FT is mpq_class
>
>     If x and w are mpq_class objects, then the type of x/w is not mpq_class,
>     but only a proxy type that is implicitly convertible to
>     mpq_class. With the type deduction, CGAL::make_array(x/w, y/w,
>     z/w) will not create an array<mpq_class> but an array of the proxy type.
>
>     That creates the following compilation error, in a ternary operator:
>
>     - with clang:
>     include/CGAL/Cartesian/Vector_3.h:78:25: error: incompatible operand types ('array<__gmp_expr<[...], struct __gmp_binary_expr<class __gmp_expr<mpq_t, mpq_t>, class __gmp_expr<mpq_t, mpq_t>, struct __gmp_binary_divides>>, [...]>' and 'array<__gmp_expr<[...], __mpq_struct [1]>, [...]>')
>         : base( w != FT_(1) ? CGAL::make_array(x/w, y/w, z/w)
>                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     - with g++:
>     include/CGAL/Cartesian/Vector_3.h:78:25: error: no match for ternary 'operator?:' (operand types are 'bool', 'std::array<__gmp_expr<__mpq_struct [1], __gmp_binary_expr<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, __gmp_expr<__mpq_struct [1], __mpq_struct [1]>, __gmp_binary_divides> >, 3ul>', and 'std::array<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, 3ul>')
>          : base( w != FT_(1) ? CGAL::make_array(x/w, y/w, z/w)
>                              ^
>
>     The fix is to specify the template argument of CGAL::make_array.

The first patch in 2013 was on `Vector_3`, but `Vector_2` also suffers
from the issue.
2016-07-13 16:30:07 +02:00
..
Aff_transformation_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Aff_transformation_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Aff_transformation_rep_2.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
Aff_transformation_rep_3.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
Cartesian_base.h apply the cpp0x namespace renaming in all files 2012-12-19 11:33:17 +01:00
Circle_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Circle_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Data_accessor_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Direction_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Direction_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Iso_cuboid_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Iso_rectangle_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Line_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Line_3.h Remove useless copy constructor 2016-01-07 14:02:26 +01:00
Plane_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Point_2.h fix the link to the developers manual, in the code 2015-06-19 11:15:55 +02:00
Point_3.h Make FT typedef public 2015-08-06 12:17:17 +02:00
Ray_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Ray_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Rotation_rep_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Scaling_rep_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Scaling_rep_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Segment_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Segment_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Sphere_3.h Qualifying with CGAL:: solves the problem, but is it the bestsolution? 2015-08-25 16:19:56 +02:00
Tetrahedron_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Translation_rep_2.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
Translation_rep_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Triangle_2.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Triangle_3.h Replace CGAL::get() with CGAL::get_pointee_or_identity() and remove using get:: 2015-04-30 11:31:21 +02:00
Vector_2.h Fix compilation error with gmpxx 2016-07-13 16:30:07 +02:00
Vector_3.h fix the link to the developers manual, in the code 2015-06-19 11:15:55 +02:00
basic_constructions_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
basic_constructions_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
ft_constructions_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
ft_constructions_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
function_objects.h Call opposite() when changing the order of arguments 2016-04-16 21:02:38 +02:00
line_constructions_2.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
plane_constructions_3.h In the implementation details of PlaneC3, Point_3 is not necessarily PointC3 2013-02-08 09:27:02 +01:00
point_constructions_2.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
point_constructions_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
predicates_on_directions_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
predicates_on_planes_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
predicates_on_points_2.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
predicates_on_points_3.h Fix last errors in headers of CGAL foundations 2012-10-08 09:03:50 +00:00
solve_3.h change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00