Boost logo

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