Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

Macro BOOST_UNITS_DEFINE_CONVERSION_FACTOR

BOOST_UNITS_DEFINE_CONVERSION_FACTOR

Synopsis

// In header: <boost/units/conversion.hpp>

BOOST_UNITS_DEFINE_CONVERSION_FACTOR(Source, Destination, type_, value_)

Description

Defines the conversion factor from a base unit to any unit or to another base unit with the correct dimensions. Uses of this macro must appear at global scope. If the destination unit is a base unit or a unit that contains only one base unit which is raised to the first power (e.g. feet->meters) the reverse (meters->feet in this example) need not be defined.


PrevUpHomeNext