![]() |
Home | Libraries | People | FAQ | More |
boost::units::base_dimension
// In header: <boost/units/base_dimension.hpp> template<typename Derived, N> class base_dimension : public { public: // types typedef ; // A convenience typedef. Equivalent to boost::units::derived_dimension<Derived,1>::type. typedef Derived ; // Provided for mpl compatability. };
Defines a base dimension. To define a dimension you need to provide the derived class (CRTP) and a unique integer.
boost::units::base_dimension<
It is designed so that you will get an error message if you try to use the same value in multiple definitions.