Iterators are passed by value

This commit is contained in:
Michael Hemmer 2008-07-30 11:26:30 +00:00
parent 4a6cd183a4
commit f0c21e20e8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public:
// constructor from an InputIterator range with value type std::pair<IC,Coeff>
template<class InputIterator>
Interpolator(const InputIterator& begin, const InputIterator& end){
Interpolator(InputIterator begin, InputIterator end){
for(InputIterator it = begin; it != end; it++){
add_interpolation_point(*it);
}