Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-03-27 11:02:01


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk