
1 Dec
2010
1 Dec
'10
12:29 a.m.
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