The problem is in previous version of lexical_cast - new version works fine. bug-fix release 1.30.1 should be OK.
Paul PS The date-time example 'days alive' test is interesting, but a version which tells one the number of 'days to still to live' would be much more interesting ;-) | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Paul A. Bristow | Sent: Thursday, August 07, 2003 9:54 PM | To: Boost mailing list | Subject: RE: [boost] Re: time_duration bug in Boost 1.30.0 | | | I have built the date examples OK, but I am getting a compile error | when trying | to build the time_math.cpp example with MSVC 7.1 aka .net 2003 | | I:/boost_1_30_0\boost\lexical_cast.hpp(147) : error C2679: binary '<<' : no | operator found which takes a right-hand operand of type 'const | boost::token_iterator_generator<TokenizerFunc,Iterator,Type>::value_type' (or | there is no acceptable conversion) | with | [ | TokenizerFunc=boost::char_delimiters_separator<char>, | | Iterator=std::basic_string<char,std::char_traits<char>,std::allocator< | char>>::co | nst_iterator, | Type=std::string | ] | I:/boost_1_30_0\boost\lexical_cast.hpp(146) : while compiling | class-template member function 'bool | boost::detail::lexical_stream<Target,Source>::operator <<(const Source &)' | with | [ | Target=unsigned short, | | Source=boost::token_iterator_generator<boost::char_delimiters_separato | r<char>,st | d::basic_string<char,std::char_traits<char>,std::allocator<char>>::con | st_iterato | r,std::string>::value_type | ] | | this is in lexical_cast | | bool operator<<(const Source& input) | { | return stream << input; | } | | I am not clear if this is a problem in lexical_cast or in date_time. Should I | wait for the 1.30.1 release or try to load an update? Or is this a | new problem? | | Thanks | | Paul | | PS There are also lots of confusing warnings, most, if not all, of which I | suspect could be casted away. | It would be really nice to get a clear compile, preferably in strict mode, | because this code is likely to be included by most user stuff, which will | repeatedly produce a host of junk warnings. | | (And other MS specific unhelpful warnings which could be dealt with by | | #ifdef _MSC_VER or BOOST_? | #pragma warning (disable : 4800) // inefficient bool conversion? | #endif | | As a general point, is there any reason why 'known to be unhelpful' warnings | like this cannot be disabled in Boost code? | | Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK | +44 1539 561830 Mobile +44 7714 33 02 04 | Mobile mailto:[EMAIL PROTECTED] | mailto:[EMAIL PROTECTED] | | | | -----Original Message----- | | From: [EMAIL PROTECTED] | | [mailto:[EMAIL PROTECTED] Behalf Of Jeff Garland | | Sent: Thursday, August 07, 2003 2:02 PM | | To: Boost mailing list | | Subject: Re: [boost] Re: time_duration bug in Boost 1.30.0 | | | _______________________________________________ | Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost | | _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost