http://www.boost.org/doc/libs/1_48_0/doc/html/boost_units/Examples.html#boos...
Hi,
There appears to be a temperature conversion problem between ºC and ºF. Here's a simple test that shows the error under both gcc and Intel on both Darwin and Linux (with Boost trunk).
brisc:~ kbelco$ cat test3.cpp #include <iostream> #include
#include #include #include int main(int, char **) { using namespace boost::units; quantityfahrenheit::temperature t(100 * celsius::temperature());
// expect output of 212 F, produces 180 F // seems like not adding 32º offset when computing F = (C * 9/5 + 32) std::cout << t << std::endl;
return 0; }
brisc:~ kbelco$ icpc -g -Iboost test3.cpp
brisc:~ kbelco$ ./a.out 180 F
-- Noel
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users