// Demonstration of cmath helper issue #include #include #include #include int main() { using namespace boost::units; boost::units::quantity x, y; // This assignment compiles: boost::units::quantity foo; foo = sqrt(x*x + y*y); // The identical expression fails as an initialization: boost::units::quantity bar = sqrt(x*x + y*y); }