|
Boost Users : |
Subject: [Boost-users] [Units] Converting from angular_velocity to degrees_per_second
From: Andrew Hundt (athundt_at_[hidden])
Date: 2010-11-30 19:29:59
I need to make a conversion from a general angular_velocity to
degrees/second. For example:
boost::units::quantity< boost::units::si::angular_velocity>
m_speed((30.0*boost::units::si::radians_per_second));
uint32_t result
= static_cast<uint32_t>(boost::units::quantity<boost::units::si::angular_velocity,uint32_t>(m_speed*boost::units::degree::degrees/boost::units::si::seconds).value());
However it fails to compile in gcc 4.4, reporting:
error:incomplete type '[type removed]' used in nested name specifier
Could someone explain the proper syntax to achieve the desired type
specification and subsequent conversion? Do I need to specify a
degrees_per_second unit, and if so, how? Thank you in advance for your help.
Cheers!
Andrew Hundt
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net