Boost C++ Libraries: Ticket #256: constructor of special_values https://svn.boost.org/trac10/ticket/256 <pre class="wiki">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&amp;) /usr/include/boost/date_time/posix_time/ptime.hpp:45: error: boost::posix_time::ptime::ptime(const boost::posix_time::int64_time_rep&amp;) /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) --------------------------------------------------------- </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/256 Trac 1.4.3 az_sw_dude Sat, 17 Apr 2004 21:12:24 GMT status changed https://svn.boost.org/trac10/ticket/256#comment:1 https://svn.boost.org/trac10/ticket/256#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">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 </pre> Ticket