Boost logo

Boost Users :

Subject: Re: [Boost-users] [Units] defining a derived dimension
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-09-08 17:01:55


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:



mpl::divides<volume_dimension, time_dimension>::type

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at