mirror of https://github.com/CGAL/cgal
fix result_of for Get_equation_3
This commit is contained in:
parent
c28b989b89
commit
dc8cb1af5c
|
|
@ -39,7 +39,6 @@ namespace CGAL {
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef void result_type; // should we keep this?
|
|
||||||
|
|
||||||
typedef typename SK::Polynomial_for_spheres_2_3 result_type_for_sphere;
|
typedef typename SK::Polynomial_for_spheres_2_3 result_type_for_sphere;
|
||||||
typedef typename SK::Polynomial_1_3 result_type_for_plane;
|
typedef typename SK::Polynomial_1_3 result_type_for_plane;
|
||||||
|
|
@ -47,6 +46,32 @@ namespace CGAL {
|
||||||
typedef typename SK::Polynomials_for_circle_3 result_type_for_circle;
|
typedef typename SK::Polynomials_for_circle_3 result_type_for_circle;
|
||||||
//using LinearFunctors::Get_equation<SK>::operator();
|
//using LinearFunctors::Get_equation<SK>::operator();
|
||||||
|
|
||||||
|
template <typename>
|
||||||
|
struct result;
|
||||||
|
|
||||||
|
template <typename F>
|
||||||
|
struct result<F(typename SK::Sphere_3)>
|
||||||
|
{
|
||||||
|
typedef result_type_for_sphere type;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename F>
|
||||||
|
struct result<F(typename SK::Plane_3)>
|
||||||
|
{
|
||||||
|
typedef result_type_for_plane type;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename F>
|
||||||
|
struct result<F(typename SK::Line_3)>
|
||||||
|
{
|
||||||
|
typedef result_type_for_line type;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename F>
|
||||||
|
struct result<F(typename SK::Circle_3)>
|
||||||
|
{
|
||||||
|
typedef result_type_for_circle type;
|
||||||
|
};
|
||||||
|
|
||||||
result_type_for_sphere
|
result_type_for_sphere
|
||||||
operator() ( const typename SK::Sphere_3 & s )
|
operator() ( const typename SK::Sphere_3 & s )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue