Boost logo

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:
>> 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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at