Use constant<FT,int> to compute .hw() and make it return by const-ref.

This commit is contained in:
Sylvain Pion
2006-08-08 15:38:23 +00:00
parent 2eb72314cc
commit 7f0f39cd1a
5 changed files with 19 additions and 28 deletions
@@ -1324,7 +1324,7 @@ namespace CartesianKernelFunctors {
};
template <typename K>
class Compute_hw_3
class Compute_hw_3 : public Has_qrt
{
typedef typename K::FT FT;
typedef typename K::Point_3 Point_3;
@@ -1334,13 +1334,13 @@ namespace CartesianKernelFunctors {
typedef FT result_type;
typedef Arity_tag< 1 > Arity;
result_type
const result_type &
operator()(const Point_3& p) const
{
return p.rep().hw();
}
result_type
const result_type &
operator()(const Vector_3& v) const
{
return v.rep().hw();