#ifndef MY_PROJECT_TYPES #define MY_PROJECT_TYPES #pragma once #include #include #include #include #include #include namespace myproject { namespace types { struct radii_base_unit : public boost::units::base_unit { static std::string name() { return("radii"); } static std::string symbol() { return("r"); } }; struct radian_base_unit : public boost::units::base_unit { static std::string name() { return("radian"); } static std::string symbol() { return("rad"); } }; typedef boost::units::make_system::type myproject_system_t; typedef boost::units::unit myproject_dimensionless_t; typedef boost::units::unit myproject_length_t; typedef boost::units::unit myproject_angle_t; typedef boost::units::quantity radii_t; typedef boost::units::quantity radian_t; typedef boost::units::quantity dimensionless_t; BOOST_UNITS_STATIC_CONSTANT(radii,myproject_length_t); BOOST_UNITS_STATIC_CONSTANT(radian,myproject_angle_t); } // namespace types } // namespace myproject #endif