On 7/22/2011 9:43 AM, Michael Powell wrote:
With this approach, we're getting a compilation error. Not sure what we're doing wrong.
#include
using namespace boost::units; using boost::units::si::mass; using boost::units::si::pressure; using boost::units::si::length; using boost::units::si::mass_density; using boost::units::si::pascals; using boost::units::si::meter; using boost::units::si::kilograms_per_cubic_meter; typedef derived_dimension
::type si_hsp_conversion_constant_factor;
In my calculations I said length was to -1.
Error 1 error C2440: 'initializing' : cannot convert from 'boost::units::quantity
' to 'boost::units::quantity ' c:\Source\SafetyValve2011\CS.Calculations\calcs\hsp.cpp 100 CS.Calculations
You've got a dimension mismatch. You should have a large block of template looking vomit in your errors. If you format those you can see what kind of conversion is being attempted and then you'll see the true dimensions of your equation.