fix result_of for Get_equation_3

This commit is contained in:
Sébastien Loriot 2013-03-21 14:06:05 +01:00
parent c28b989b89
commit dc8cb1af5c
1 changed files with 26 additions and 1 deletions

View File

@ -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 )