|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-20 16:20:45
"Jeff Garland" <jeff_at_[hidden]> writes:
> On Tue, 20 Jul 2004 21:30:04 +0100, Jonathan Oulds wrote
>> Could anyone explain to me why there is not a default constructor
>> for boost::gregorian::date_time and boost::posix_time::ptime.
>
> Yes, you can see this thread:
>
> http://lists.boost.org/MailArchives/boost-users/msg05864.php
>
>> I implemented a simple constructor where both classes are created
>> as 'not_a_date_time'. The only problem I have had is compiling my
>> code on other peoples machines that do not have my modification to
>> the date_time library.
>
> I've given in to user demand -- the default constructor to
> not_a_date_time will be in the 1.32 -- gregorian::date same story.
Why was that the right choice? It seems like an opportunity for bugs.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net