
8 Sep
2011
8 Sep
'11
2:03 p.m.
AMDG On 09/08/2011 12:43 PM, Michael Powell wrote:
I want to define a dimension stroke_rate, or flow_rate, for that matter. Not too out of the ordinary for our application. So I am starting with something like this for my dimensions.
#include <boost/units/derived_dimension.hpp> #include <boost/units/physical_dimensions/length.hpp> #include <boost/units/physical_dimensions/time.hpp>
typedef boost::units::derived_dimension<boost::units::dimensionless_type,1,boost::units::time_base_dimension,-1>::type stroke_rate_dimension;
<snip>
Any thoughts?
Does it work better if you use boost::units::derived_dimension<boost::units::time_base_dimension,-1>::type ? i.e. Leave out the unnecessary dimensionless_type. In Christ, Steven Watanabe