
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_itr<boost::posix_time::ptime>::time_itr()'| note: candidates are: boost::date_time::time_itr<boost::posix_time::ptime>::time_itr(const boost::date_time::time_itr<boost::posix_time::ptime>&)| note: boost::date_time::time_itr<time_type>::time_itr(time_type, typename time_type::time_duration_type) [with time_type = boost::posix_time::ptime] It seems to mean that a cannot construct a time_iterator without parameters... But I don't know how to fix that.