Boost Users :
Subject: Re: [Boost-users] [Units] defining a derived dimension
From: Michael Powell (mwpowellnm_at_[hidden])
Date: 2011-09-08 16:39:41
On Thu, Sep 8, 2011 at 2:03 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
> On 09/08/2011 12:43 PM, Michael Powell wrote:
> > I want to define a dimension stroke_rate, or flow_rate, for that matter.
> > too out of the ordinary for our application. So I am starting with
> > 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
> > stroke_rate_dimension;
> > <snip>
> > Any thoughts?
> Does it work better if you use
Actually, that's the approach I ended up taking, then leave the
dimensionless aspect for a calculation to resolve. That one does anyway.
Next up, I need to capture a flow_rate, which I think is something like,
Or possibly, would be better,
But this is causing the same type of build errors.
> i.e. Leave out the unnecessary dimensionless_type.
> In Christ,
> Steven Watanabe
Thanks, brother. :)
> Boost-users mailing list
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