Open jhonathanzentech opened 5 years ago
I am trying to perform an unit container conversion like this:
units::length::meter_t a(1.0); units::length::mile_t b = a; std::cout << b << std::endl;
This should print 0.000621371 mi but instead it prints 1 m.
0.000621371 mi
1 m
If I do this:
using namespace units; using namespace units::length; meter_t a(1.0); mile_t b = a; std::cout << b << std::endl;
Now it does print 0.000621371 mi. Is there any reason for this?
Seems like #146 and this were fixed by #167, so in the v3.x branch the output is as expected.
I am trying to perform an unit container conversion like this:
This should print
0.000621371 mi
but instead it prints1 m
.If I do this:
Now it does print
0.000621371 mi
. Is there any reason for this?