I am trying to pass boost::circular_buffer::iterator as a function argument to iterate over the circular buffer. This is the prototype definition of a function in a header file inside the project that I am working on
#include<boost/circular_buffer.hpp>
#include <boost/assert.hpp>
#include <boost/iterator.hpp>
#ifndef STEREOMATCH_H_
#define STEREOMATCH_H_
template <class T, class U>
class StereoMatch {
public:
void fillPixels(boost::circular_buffer<T>::iterator it, T* imgPtr,const int BUFF_SIZE);
};
#endif /* STEREOMATCH_H_ */
When I build the project, I get the following error
In file included from ../depth/StereoMatch.cpp:7:0:
../depth/StereoMatch.h:33:45: error: 'boost::circular_buffer<T, std::allocator<_Tp1> >::iterator' is not a type
What sould I do to resolve this error ?