
"Jeff Garland"
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