id summary reporter owner description type status milestone component version severity resolution keywords cc 10270 square root of boost units scaled_unit fails to compile sharifmarat@… Matthias Schabel "I have created a scaled unit to handle micro meters: {{{ typedef make_scaled_unit > >::type micro_meter_unit; }}} Everything works as expected: {{{ quantity some_meter = 10 * si::meter; quantity some_mu_meter = static_cast>(some_meter); std::cout << ""some_meter^2 = "" << some_meter * some_meter; // outputs 100 m^2 std::cout << ""some_mu_meter^2 = "" << some_mu_meter * some_mu_meter; // outputs 1e+014 p(m^2) }}} Yet the square root operations is not compiled: {{{ std::cout << ""sqrt(some_meter) = "" << sqrt(some_meter); // outputs 3.16228 m^(1/2) std::cout << ""sqrt(some_mu_meter) = "" << sqrt(some_mu_meter); //error here // 'value' : is not a member of 'boost::units::scale_dim_tag' }}} Also the following code fails to compile: {{{ quantity mu_meter(sqrt(1.0 * si::micro * si::meter * si::meter)); }}} I used the following include files: {{{ #include #include #include #include #include #include #include #include }}}" Bugs closed To Be Determined units Boost Development Trunk Problem fixed scale