Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2011-09-25 10:29:51

> I think that it is reasonable to compare different types. One example is
> chrono::duration. You can compare durations with a different Period.

Yes, but these are related types: they share a common type. In fact,
they explicitly share a common type (common_type is specialized for
durations). I think its reasonable to define < for common types. Also
==, +, and *.

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