
*** ptime.hpp.orig Sat Nov 22 21:37:58 2003 --- ptime.hpp Fri Mar 26 20:02:09 2004 *************** *** 45,50 **** --- 45,54 ---- ptime(const time_rep_type& rhs): date_time::base_time<time_type,time_system_type>(rhs) {} + //! Contruct from special value + ptime(special_values sv) : + date_time::base_time<time_type,time_system_type>(gregorian::date(sv),time_du ration_type(sv)) + {} };
-----Ursprüngliche Nachricht----- Von: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] Im Auftrag von Frank Wolf Gesendet: Samstag, 27. März 2004 11:12 An: boost@lists.boost.org Betreff: [boost] Bug in Date_Time library + Patch
Hi all!
While adding some additional functionality to the Date_Time library I've found a minor bug in it:
According to the documentation the contructor of the "ptime" type also accepts a special value but this overloaded constructor is missing in the library code.
I've made this trivial fix and attached a patch file...
Regards,
Frank