From 7fb350c83f79f75ecf3a67a53a897656dc13ab8f Mon Sep 17 00:00:00 2001 From: Michael Hemmer Date: Sun, 28 Nov 2010 12:17:58 +0000 Subject: [PATCH] added missing const for operators --- Algebraic_foundations/include/CGAL/Coercion_traits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;} }; }