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) ---------------------------------------------------------
Note:
See TracTickets
for help on using tickets.