|
Boost Users : |
Subject: Re: [Boost-users] [Boost units] Derived units for specific_heat_capacity
From: A Andrew (wilddev_at_[hidden])
Date: 2012-11-08 11:30:58
Thanks! I changed specific_heat_capacity to specific energy and it works fine.
08.11.2012, 20:24, "Steven Watanabe" <watanabesj_at_[hidden]>:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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