|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2003-07-25 10:49:24
Dick B. wrote:
> I'm pretty sure the headers are being found. If I replace posix_time.hpp
> with posix_time_types.hpp, the error and many of the warnings disappear.
> In other words...
Ok.
> #include <boost/date_time/gregorian/gregorian.hpp>
> //#include <boost/date_time/posix_time/posix_time.hpp>
> #include <boost/date_time/posix_time/posix_time_types.hpp>
>
> avoids the error message.
This is because commenting out 'posix_time.hpp' eliminates the
I/O code from the library. This is the part that uses
lexical_cast which is where the error is occuring.
> ...which refers to lexical_cast.hpp
>
> template<typename Target, typename Source>
> class lexical_stream
> {
> bool operator<<(const Source &input)
> {
> here ===> return stream << input; <==== here
> }
> }
>
> So I assume there's a header somewhere that defines the '<<' operator
> referred to. I don't know if this is related to my use of VC7.1 or not.
> I'm trying to find someone around here with VC7 to build boost_1_30_0 and
> see if that makes a difference. No luck so far.
I'm starting to think this may be related to the 1_30_0 lexical cast
problem. Can you upgrade lexical_cast.hpp from cvs? You can download
it from here:
http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/boost/boost/boost/lexical_cast.hpp
Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net