|
Boost : |
From: Frank Wolf (webmaster_at_[hidden])
Date: 2004-03-27 06:46:40
*** 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_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] Im Auftrag von Frank Wolf
> Gesendet: Samstag, 27. März 2004 11:12
> An: boost_at_[hidden]
> 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
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk