4 ms·
who said `operator*` needs to return the same type as its parameters?
by binary132 1y ago
who said `operator*` needs to return the same type as its parameters?
- bluGill 1y agooperator* can return exactly one type. You can choose which, but metric offers many possible choices, and with floating point math on computers you will lose precision converting between them in some cases so you need to take care to get the right on for your users - which will not be the same for all users.