mirror of https://github.com/CGAL/cgal
added some const to functors
This commit is contained in:
parent
eeac591e0f
commit
ee45a9c3e5
|
|
@ -999,7 +999,7 @@ struct Construct_coefficient_const_iterator_range
|
||||||
: public std::unary_function< Polynomial_d,
|
: public std::unary_function< Polynomial_d,
|
||||||
Coefficient_const_iterator_range> {
|
Coefficient_const_iterator_range> {
|
||||||
Coefficient_const_iterator_range
|
Coefficient_const_iterator_range
|
||||||
operator () (const Polynomial_d& p) {
|
operator () (const Polynomial_d& p) const {
|
||||||
return make_pair( p.begin(), p.end() );
|
return make_pair( p.begin(), p.end() );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -1008,7 +1008,7 @@ struct Construct_coefficient_const_iterator_range
|
||||||
: public std::unary_function< Polynomial_d,
|
: public std::unary_function< Polynomial_d,
|
||||||
Innermost_coefficient_const_iterator_range> {
|
Innermost_coefficient_const_iterator_range> {
|
||||||
Innermost_coefficient_const_iterator_range
|
Innermost_coefficient_const_iterator_range
|
||||||
operator () (const Polynomial_d& p) {
|
operator () (const Polynomial_d& p) const {
|
||||||
return make_pair(
|
return make_pair(
|
||||||
typename Coefficient_const_flattening::Flatten()(p.end(),p.begin()),
|
typename Coefficient_const_flattening::Flatten()(p.end(),p.begin()),
|
||||||
typename Coefficient_const_flattening::Flatten()(p.end(),p.end()));
|
typename Coefficient_const_flattening::Flatten()(p.end(),p.end()));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue