19 Nov
2005
19 Nov
'05
4:27 a.m.
David Abrahams wrote:
"Robert Ramey"
writes: What I needed was a type that had the functioning of say an unsigned integer but was of a distinguishable type. What do other people mean when the say they want a strong typedef?
That's roughly what they mean. But IIRC you actually needed much less than that, and so didn't even begin to attempt to implement all of it. For example, IIRC you can't add two instances of your type.
The following program does compile: