C++: type Length from float
- by anon
This is kinda like my earlier question:
http://stackoverflow.com/questions/2451175/c-vector3-type-wall
Except, now, I want to do this to a builtin rather then a user created type.
So I want a type "Length" that behaves just like float -- except I'm going to make it's constructor explicit, so I have to explicitly construct Length objects (rather than have random conversions flying around).
Basically, I'm going into the type-a-lot camp.