Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost units] Derived units for specific_heat_capacity
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-11-08 11:23:27


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_dimension,si::system> specific_heat_capacity;
> But when I try to define
> quantity<specific_heat_capacity> 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


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