|
Boost Users : |
From: Black Ice (yg-boost-users_at_[hidden])
Date: 2003-01-05 20:20:30
But I has remove the line "using namespace std";
-- /*******************/ 自由(liberty)无非就是这样一种承诺:每个人将会得到一种保障,保障我们可以与 权威、多数、流俗及舆论的影响相抗衡。 /*******************/ "Darin Adler" <darin_at_[hidden]> 写入消息新闻 :5B99D4C8-2057-11D7-B2AB-0003935B80A2_at_bentspoon.com... > > 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 > > > > Info: <http://www.boost.org> > Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> > Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]> > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > >
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