繁体   English   中英

是boost :: quantity_cast <double> 永远是基本单位

[英]Is boost::quantity_cast<double> always the base unit

我已经定义

boost::units::quantity<boost::units::si::resistance> res;

才能保持抵抗。 我将该值分配给:

   boost::units::quantity<boost::units::si::resistance> res(10 * (boost::units::si::deci * boost::units::si::ohm))

boost :: units :: quantity_cast <double>(res)总是返回基本单位欧姆的电阻值吗? 是否可以使用boost :: units转换为另一个基本单位并导出为pod类型?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM