Ticket #2551: 50-date_time-constrained_value-uninitialized.diff

File 50-date_time-constrained_value-uninitialized.diff, 476 bytes (added by Brad Spencer <spencer@…>, 14 years ago)
  • boost/date_time/constrained_value.hpp

    https://svn.boost.org/trac/boost/ticket/2551
    old new  
    3939    typedef typename value_policies::value_type value_type;
    4040    //    typedef except_type exception_type;
    4141    constrained_value(value_type value)
     42      : value_(value) // avoid uninitialized use of value_ on error
    4243    {
    4344      assign(value);
    4445    };