"Jeff Garland" <[EMAIL PROTECTED]> writes: > On Tue, 02 Sep 2003 18:27:59 -0400, David Abrahams wrote >> Suppose I want to know how many minutes there are in a particular >> duration d? My intuition says: >> >> d / minutes(1) >> >> But there's no such operator. Why not? > > An interesting point. Probably should be possible. While addition and > subtraction operators are specified in terms of durations division and > multiplication are defined with integers not other durations. I'm thinking it > would have to be defined like this > Duration / Duration --> Integer > > Anyway d.minutes() should do what you want.
I think Duration / Duration --> double would be more appropriate. -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost