[date_time] missing includes?

I'm just trying date_time on OS X. I've included #include <boost/date_time/posix_time/ptime.hpp> #include <boost/date_time/posix_time/conversion.hpp> This fails to compile with the following error. Including posix_time.hpp rather than ptime.hpp or a gregorian header solves the problem. posix_time/conversion.hpp:33: error: 'to_tm' undeclared in namespace 'boost::gergorian' posix_time/conversion.hpp:45: error: 'date_from_tm' undeclared in namespace 'boost::gregorian' Should the appropriate header be included by posix_time/conversion.hpp? Cheers Russell

On Sun, 27 Mar 2005 16:18:33 +0100, Russell Hind wrote
I'm just trying date_time on OS X. I've included
#include <boost/date_time/posix_time/ptime.hpp> #include <boost/date_time/posix_time/conversion.hpp>
This fails to compile with the following error. Including posix_time.hpp rather than ptime.hpp or a gregorian header solves the problem.
posix_time/conversion.hpp:33: error: 'to_tm' undeclared in namespace 'boost::gergorian' posix_time/conversion.hpp:45: error: 'date_from_tm' undeclared in namespace 'boost::gregorian'
Should the appropriate header be included by posix_time/conversion.hpp?
Yes, I've checked in a fix that adds in that include to gregorian/conversion.hpp. Thx for the report. Jeff
participants (2)
-
Jeff Garland
-
Russell Hind