jlfranks Messages: 57 Registered: May 2007 Location: Houston, TX, USA
Member
Well, I think Duration is a general case and should be included
in Upp.
I just ran into this problem, i.e., where Time is really Time&Date. I need a Duration type.
Imagine a case whereby process control batch has many different
timed durations and we use Upp to present this to the operator.
Duration should be a type included in Upp. Also, it is not just
a new typedef as was mentioned.
Value type must comprehend the new type Dur or Duration (depending on how it is named). There are guards that check for null and empty, and it switches on the test depending on the
Type and applies the right operation for that Type.
Not as simple as just a new typedef as stated earlier:
typedef EditMinMax<Time, ConvertDuration> EditDur;