$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Units] defining a derived dimension
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-09-08 17:01:55
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
In Christ,
Steven Watanabe