added missing const for operators

This commit is contained in:
Michael Hemmer 2010-11-28 12:17:58 +00:00
parent da076665d2
commit 7fb350c83f
1 changed files with 3 additions and 3 deletions

View File

@ -138,13 +138,13 @@ namespace CGAL {
namespace INTERN_CT{ namespace INTERN_CT{
template< class FROM, class TO >struct Cast_from_to{ template< class FROM, class TO >struct Cast_from_to{
typedef TO result_type; typedef TO result_type;
TO operator()(const TO& x){return x;} TO operator()(const TO& x) const {return x;}
TO operator()(const FROM& x){return TO(x);} TO operator()(const FROM& x) const {return TO(x);}
}; };
template< class TO> template< class TO>
struct Cast_from_to<TO,TO>{ struct Cast_from_to<TO,TO>{
typedef TO result_type; typedef TO result_type;
TO operator()(const TO& x){return x;} TO operator()(const TO& x) const {return x;}
}; };
} }