Thanks! I changed specific_heat_capacity to specific energy and it works fine.
08.11.2012, 20:24, "Steven Watanabe"
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; But when I try to define quantity 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users