From af4f6424beaef83292020c59bc5de3aaa8b396be Mon Sep 17 00:00:00 2001 From: Jeff Garland Date: Sat, 3 Apr 2004 23:20:34 +0000 Subject: [PATCH] fix the posix_time constructor to accept special values [SVN r22590] --- include/boost/date_time/posix_time/ptime.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/date_time/posix_time/ptime.hpp b/include/boost/date_time/posix_time/ptime.hpp index 940f07f..a8b32a9 100644 --- a/include/boost/date_time/posix_time/ptime.hpp +++ b/include/boost/date_time/posix_time/ptime.hpp @@ -45,6 +45,10 @@ namespace posix_time { ptime(const time_rep_type& rhs): date_time::base_time(rhs) {} + //! Construct from special value + ptime(const special_values sv) : date_time::base_time(gregorian::date(sv), time_duration_type(sv)) + {} + };