diff --git a/Algebraic_foundations/include/CGAL/Coercion_traits.h b/Algebraic_foundations/include/CGAL/Coercion_traits.h index b5970cfd619..e7b17217a65 100644 --- a/Algebraic_foundations/include/CGAL/Coercion_traits.h +++ b/Algebraic_foundations/include/CGAL/Coercion_traits.h @@ -138,13 +138,13 @@ namespace CGAL { namespace INTERN_CT{ template< class FROM, class TO >struct Cast_from_to{ typedef TO result_type; - TO operator()(const TO& x){return x;} - TO operator()(const FROM& x){return TO(x);} + TO operator()(const TO& x) const {return x;} + TO operator()(const FROM& x) const {return TO(x);} }; template< class TO> struct Cast_from_to{ typedef TO result_type; - TO operator()(const TO& x){return x;} + TO operator()(const TO& x) const {return x;} }; }