Boost logo

Boost :

From: Jan Langer (jan_at_[hidden])
Date: 2004-01-17 14:26:29

Phil Richards wrote:
>>normally something like this could be plugged into the dimensions lib
>>and everything could work as expected:
>> typedef ... kelvin;
>> absolute <kelvin> freezing_point (273.15); absolute <kelvin>
>> boiling_point = freezing_point + 100 * kelvin; kelvin temp_diff =
>> boiling_point - freezing_point;
>> freezing_point + boiling_point; // error
>>a similar approach should imho be followed to support the affine and
>>non-linear measures.
> This I like - I think it works in practice as well as being rather tidy.
> I think with a bit of playing around, we could slot the boost::date_time
> library in for "absolute time" - or maybe we just have suitable
> specialisations for absolute<>?

date_time has already something similar. date and date_duration for
example. i think its not reasonable to couple these two libraries but i
havent used date_time so far to really know it.

jan langer ... jan_at_[hidden]
"pi ist genau drei"

Boost list run by bdawes at, gregod at, cpdaniel at, john at