|
Boost : |
From: Christian Körber (koerber_at_[hidden])
Date: 2003-09-19 06:00:59
I forgot to mention:
the line which caused the error was:
std::cout << to_simple_string(t1);
I get the same error with:
to_simple_string(t1);
alone.
Christian
> #include "boost/date_time/posix_time/posix_time.hpp"
> #include <iostream>
>
> int main()
> {
> using namespace boost::posix_time;
> using namespace boost::gregorian;
>
> date d(2002,Feb,1); //an arbitrary date
> //construct a time by adding up some durations durations
> ptime t1(d, hours(5)+minutes(4)+seconds(2)+millisec(1));
>
> std::cout << to_simple_string(t1);
>
> return 0;
> }
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk