Boost logo

Boost Users :

From: Darin Adler (darin_at_[hidden])
Date: 2003-01-04 21:42:40


On Friday, January 3, 2003, at 10:34 PM, Black Ice wrote:

> Can I assume it's a bug of boost.date_time?

No.

>>> using namespace std;
>>>
>>> #include <boost/date_time/gregorian/gregorian.hpp>
>>> #include <boost/date_time/posix_time/posix_time.hpp>

The above code has an error. You must not do a "using namespace" before
including a header file and expect that to work.

I recommend that you move the using namespace directives so they are
all below all your includes.

     -- Darin


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