mirror of https://github.com/CGAL/cgal
added missing const for operators
This commit is contained in:
parent
da076665d2
commit
7fb350c83f
|
|
@ -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;}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue