|
Boost : |
From: Beman Dawes (beman_at_[hidden])
Date: 1999-07-01 11:26:38
At 04:24 PM 7/1/99 +0200, Valentin Bonnard wrote:
>> >- Add a member function or constant to allow programatic access
the
>> >time limit of the implementation before overflow occurs.
>>
>> Good idea. Hum... How do you implement that using <ctime>? I will
>> have to ask some C experts, but it looks to me like you just came
up
>> with a hole in the C standard! I have sent a message to the
>> committees asking for information.
>
>std::numerical_limits<time_t>::max () ?
What is needed is CLOCK_T_MAX or similar, which may be less than the
max value for the underlying type.
I have already had a couple of responses from the C committee people,
with at least one suggesting the need for a fix in time.h.
But for now it looks like a max() function would have to be hand
supplied for each implementation.
--Beman
------------------------------------------------------------------------
eGroups.com home: http://www.egroups.com/group/boost
http://www.egroups.com - Simplifying group communications
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk