Boost logo

Boost Users :

Subject: Re: [Boost-users] [Units] defining a derived dimension
From: Michael Powell (mwpowellnm_at_[hidden])
Date: 2011-09-08 17:10:32


Ah ok.

On Thu, Sep 8, 2011 at 3:01 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
> On 09/08/2011 01:39 PM, Michael Powell wrote:
> >
> > Next up, I need to capture a flow_rate, which I think is something like,
> >
> > typedef
> derived_dimension<length_dimension,3,time_base_dimension,-1>::type
> > flow_rate_dimension;
> >
> > Or possibly, would be better,
> >
> > typedef
> derived_dimension<volume_dimension,1,time_base_dimension,-1>::type
> > flow_rate_dimension;
> >
> > But this is causing the same type of build errors.
> >
> > ?
>
> You're mixing dimensions and base dimensions incorrectly.
> Use either:
>
> derived_dimension<length_base_dimension,3,time_base_dimension,-1>::type
>
> or
>
> mpl::divides<volume_dimension, time_dimension>::type
>

I knew it had to be something stupid like that. Thanks for pointing that
out.

> In Christ,
> Steven Watanabe
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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