|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2006-01-30 20:59:24
On Mon, 30 Jan 2006 19:00:09 -0500, Christian Henning wrote
> Hi there, is it possible to construct a ptime with an __int64. The
> internal representation is of the same type. I couldn't find anything
> on this issue.
I don't think I recommend it and haven't tried it recently, but it appears
that it's possible. See:
http://www.boost.org/doc/html/ptime.html
ptime(const time_rep_type &);
I don't recommend it because of the obvious violation of encapsulation and the
fact that if you recompile with the 96 bit internal representation your code
will break. Oh, and if you want it to be portable, you should use
boost::int64_t instead of __int64.
Jeff
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