Boost logo

Boost Users :

Subject: [Boost-users] [Boost units] Derived units for specific_heat_capacity
From: A Andrew (wilddev_at_[hidden])
Date: 2012-11-08 08:02:00


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


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