Boost logo

Boost Users :

From: george (george13p_at_[hidden])
Date: 2006-05-07 16:19:31


hello!

try
{
  boost::gregorian::date date_start(boost::gregorian::from_string(start));
  boost::gregorian::date date_end(boost::gregorian::from_string(end));
  boost::gregorian::date today(boost::gregorian::day_clock::local_day());
  if(date_start > date_end || date_start < today || date_end.year() > today.year())
        return false;
        period_=new boost::gregorian::date_period(date_start,date_end);
        return true;
}
catch(...)
{
   return false;
}

.../boost/date_time/constrained_value.hpp:
In member function ‘virtual bool Reservation::validation(std::string&)’:
.../boost/date_time/constrained_value.hpp:64:
warning: ‘year$D34041$value_’ is used uninitialized in this function
.../date_time/constrained_value.hpp:64:
warning: ‘year$D34041$value_’ is used uninitialized in this function

why I get this warning?
any idea?

thanks


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