Remove '&' from the return type, as it would be a reference to a local variable

This commit is contained in:
Andreas Fabri 2013-02-28 09:23:08 +01:00
parent 92ebc695a2
commit 9a17fce6b1
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Filtered_number
if (!double_) return CGAL_POLYNOMIAL_TO_DOUBLE(nt_);
return d_;
}
const std::pair<double, double> &it() const
const std::pair<double, double> it() const
{
if (!double_) return CGAL_POLYNOMIAL_TO_INTERVAL(nt_);
return std::pair<double,double>(d_, d_);