|
Boost Users : |
Subject: [Boost-users] [units] Creating specific unit quantities
From: Ryan (mccorywork_at_[hidden])
Date: 2011-03-01 22:19:20
In the Boost Unit documentation there are examples on creating
quantities using a dimension. There doesn't seem to be any
documentation on using a specific type of dimension as a quantity. Is
it possible to create a quantity with a specific type of dimension value?
using namespace boost::units;
using namespace boost::units::si;
quantity<length> L = 2.0*meters;
//Is it possible to have meters instead of length as a quantity?
quantity<???> L = 2.0 * meters;
Ryan
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