
But I has remove the line "using namespace std"; -- /*******************/ ×ÔÓÉ£šliberty£©ÎÞ·ÇŸÍÊÇÕâÑùÒ»ÖÖ³Ðŵ£ºÃ¿žöÈËœ«»áµÃµœÒ»ÖÖ±£ÕÏ£¬±£ÕÏÎÒÃÇ¿ÉÒÔÓë ÈšÍþ¡¢¶àÊý¡¢Á÷Ë׌°ÓßÂÛµÄÓ°ÏìÏ࿹ºâ¡£ /*******************/ "Darin Adler" <darin@bentspoon.com> ÐŽÈëÏûÏ¢ÐÂÎÅ :5B99D4C8-2057-11D7-B2AB-0003935B80A2@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@yahoogroups.com>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/