3 ms·
Nice trick. One thing bothers me, couldn't the compiler use operator float and the construct from float for non-matching units?
by im3w1l 12y ago
Nice trick. One thing bothers me, couldn't the compiler use operator float and the construct from float for non-matching units?
- coyotebush 12y agoI believe using those together counts as two user-defined conversions and is rejected. But one or both of those might as well be declared explicit.