
8 Nov
2012
8 Nov
'12
4:23 p.m.
AMDG On 11/08/2012 05:02 AM, A Andrew wrote:
How to define a unit for specific_heat_capacity? In boost::units there is a specific_heat_capacity.hpp file, which defines specific_heat_capacity_*dimension*. To define specific_heat_capacity *unit* I use the following code: typedef unit
specific_heat_capacity; But when I try to define quantity specificHeat(6088.0 * (kilo*joule)/(kilogram)); compilation fails with error: no instance of function template "boost::units::conversion_factor" matches the argument list........ How to cope with this problem? P.S. Full source code attached
Check the dimensions specific_heat_capacity is defined as J/(kg * deg K). In Christ, Steven Watanabe