readable_scalar_plus_unit.cpp:8:18: error: no match for ‘operator+’ (operand types are ‘units::length::meters<double>’ and ‘double’)
8 | auto bad = 1.0_m + 5.0; // ill-formed: cannot add a raw scalar to a length
| ~~~~~ ^ ~~~
| | |
| | double
| units::length::meters<double>
readable_scalar_plus_unit.cpp:8:18: note: there are 9 candidates
8 | auto bad = 1.0_m + 5.0; // ill-formed: cannot add a raw scalar to a length