
Hi, I have a compilation issue with time_iterator from date_time library
First, I use this object in a struct, it worked fine
typedef struct{
...
time_iterator _iter;
...
}Timer;
But when I needed to translate my struct into a class to have more
functionality, I wasn't able to compile it :
class Timer{
public:
Timer();
Timer( time_iterator & );
~Timer();
private:
time_iterator _iter;
};
...
Timer::Timer( time_iterator &it )
{
_iter = it;
}
I got these errors :
In constructor `Timer::Timer()'
error: no matching function for call to
`boost::date_time::time_itrboost::posix_time::ptime::time_itr()'|
note: candidates are:
boost::date_time::time_itrboost::posix_time::ptime::time_itr(const
boost::date_time::time_itrboost::posix_time::ptime&)|
note:
boost::date_time::time_itr