Steven Watanabe writes:
AMDG
Can you post the definitions of FPS::foot, FPS::system &c.
In Christ,
Steven Watanabe
Here is the definition for feet (using centimeters as an example):
#ifndef BOOST_UNITS_FPS_LENGTH_HPP
#define BOOST_UNITS_FPS_LENGTH_HPP
#include
namespace boost {
namespace units {
namespace FPS {
typedef unit length;
BOOST_UNITS_STATIC_CONSTANT(foot,length);
BOOST_UNITS_STATIC_CONSTANT(feet,length);
} // namespace FPS
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_FPS_LENGTH_HPP
Note: in the following I have a slug_base_unit, but I can't get this to work
even if I strip out slugs and seconds, and only try working with feet.
#ifndef BOOST_UNITS_FPS_BASE_HPP
#define BOOST_UNITS_FPS_BASE_HPP
#include <string>
#include
#include
#include
#include
#include
#include
#include
namespace boost {
namespace units {
namespace FPS {
// Note: called fps for foot-pound-second, but mass unit is slugs
typedef make_system::type
system;
/// dimensionless FPS unit
typedef unit dimensionless;
} // namespace FPS
} // namespace units
} // namespace boost
#endif // BOOST_UNITS_FPS_BASE_HPP
FPS is a fairly common system where I work, and although it is short for
foot-pounds-seconds since pounds is a force, the mass unit is slugs.
Pat