Opened 19 years ago

Closed 19 years ago

#256 closed Bugs (Fixed)

constructor of special_values

Reported by: andrasiel Owned by: az_sw_dude
Milestone: Component: date_time
Version: None Severity:
Keywords: Cc:

Description

I've a problem when trying to use the ptime constructor
of special values
ptime(special_values sv)
Constructor for infinities, not-a-date-time
ptime t1(neg_infin);
ptime t2(pos_infin);
ptime t3(not_a_date_time);

gcc does not find this constructor and indeed it is not
listed in the candidate list.

the exact error is :
--------------------------------------------------------
database.cpp:241: error: no matching function for call to `
  
boost::posix_time::ptime::ptime(boost::date_time::special_values)'
/usr/include/boost/date_time/posix_time/ptime.hpp:32:
error: candidates are:
   boost::posix_time::ptime::ptime(const
boost::posix_time::ptime&)
/usr/include/boost/date_time/posix_time/ptime.hpp:45:
error:
   boost::posix_time::ptime::ptime(const
boost::posix_time::int64_time_rep&)
/usr/include/boost/date_time/posix_time/ptime.hpp:42:
error:
   boost::posix_time::ptime::ptime(boost::gregorian::date)
/usr/include/boost/date_time/posix_time/ptime.hpp:39:
error:
   boost::posix_time::ptime::ptime(boost::gregorian::date,
   boost::posix_time::time_duration)
---------------------------------------------------------

Change History (1)

comment:1 by az_sw_dude, 19 years ago

Status: assignedclosed
Logged In: YES 
user_id=579686

This was a problem in the 1_31 release -- the constructor
was accidently droped.  The file has been fixed in CVS.  You
can patch your 1_31 release by getting the latest
/boost/date_time/posix_time/ptime.hpp

Jeff
Note: See TracTickets for help on using tickets.