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