|
Boost Users : |
From: Cheng, Victor S (victor.cheng_at_[hidden])
Date: 2006-11-06 09:25:27
I'm testing the boost 1_33_1 date_time library, but run into a strange
compilation problem. In the following code, second_clock::local_time()
is fine, but microsec_clock::local_time() will not compile. I'm using XP
and visual studio 2005 and VC8. Am I missing anything in my build?
compiler messages:
1>.\t2.cpp(18) : error C2653: 'microsec_clock' : is not a class or
namespace name
1>.\t2.cpp(18) : error C3861: 'local_time': identifier not found
the code:
#include "boost/date_time/posix_time/posix_time.hpp"
#include <iostream>
int
main()
{
using namespace boost::posix_time;
ptime now = microsec_clock::local_time();
std::cout << now << std::endl;
return 0;
}
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
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