Boost logo

Boost Users :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2003-03-21 07:56:58


In article <b5d5s1+mve4_at_[hidden]>, klapshin <klapshin_at_[hidden]>
writes
>I am trying new 1.30.0 release and got couple of problems on MSVC6
>SP5.
>
>First of all, compiling
>
>#include <boost/date_time/gregorian/gregorian.hpp>
>int main()
>{
> boost::gregorian::from_string( "" );
> return 0;
>}
>
>yields warning:
>
>
>I:\SW\EXTERNAL\BOOST_1_30_0\boost/lexical_cast.hpp(147) : warning
>C4800: 'void *' : forcing value to bool 'true' or 'false'
>(performance warning)
> I:\SW\EXTERNAL\BOOST_1_30_0\boost/lexical_cast.hpp(146) :
>while compiling class-template member function 'bool __thiscall
>boost::detail::lexical_stream<int,class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char>
> > >::operator <<(const class std::basic_string<char,struct
>std::char_traits<char>,class std::allocator<char> > &)'

Is the runtime behaviour correct? Have you been able to reproduce the
warning with a smaller example based just on lexical_cast?

Thanks, Kevlin.
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  mailto:kevlin_at_[hidden] mobile: +44 7801 073 508
  http://www.curbralan.com fax: +44 870 052 2289
  Curbralan: Consultancy + Training + Development + Review
____________________________________________________________


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