id summary reporter owner description type status milestone component version severity resolution keywords cc 13591 maybe a bug in math::constants library seanxnie@… John Maddock "The following templated code will generate incorrect result in visual studio community 2017: {{{ #include #include // convienent defination of math constants template const T pi = boost::math::constants::pi(); // PI template const T two_pi = boost::math::constants::two_pi(); // 2*PI // physical constants template const T mu_0 = 4.0*pi*1.0e-4; // permeability of free space in H / km int main() { using T = double; auto w = two_pi * 0.01; //auto t1 = pi; auto t2 = mu_0; std::cout<<""omega=""< }}} in main, the result is correct. This problem does not happen when compiled with gcc 8.1 in Manjaro Linux. The boost library version is 1.67.0 " Bugs closed Boost 1.67.0 math Boost 1.67.0 Problem obsolete