diff -urN boost_1_58_0-orig/boost/units/base_units/angle/degree.hpp boost_1_58_0/boost/units/base_units/angle/degree.hpp
old
|
new
|
|
11 | 11 | #ifndef BOOST_UNITS_ANGLE_DEGREE_BASE_UNIT_HPP |
12 | 12 | #define BOOST_UNITS_ANGLE_DEGREE_BASE_UNIT_HPP |
13 | 13 | |
| 14 | #include <boost/math/constants/constants.hpp> |
| 15 | |
14 | 16 | #include <boost/units/conversion.hpp> |
15 | 17 | #include <boost/units/base_units/angle/radian.hpp> |
16 | 18 | |
17 | | BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,degree,"degree","deg",6.28318530718/360.,boost::units::angle::radian_base_unit,-101); |
| 19 | BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,degree,"degree","deg",boost::math::constants::two_pi<double>()/360.0,boost::units::angle::radian_base_unit,-101); |
18 | 20 | |
19 | 21 | #if BOOST_UNITS_HAS_BOOST_TYPEOF |
20 | 22 | |
diff -urN boost_1_58_0-orig/boost/units/base_units/angle/gradian.hpp boost_1_58_0/boost/units/base_units/angle/gradian.hpp
old
|
new
|
|
11 | 11 | #ifndef BOOST_UNITS_ANGLE_GRADIAN_BASE_UNIT_HPP |
12 | 12 | #define BOOST_UNITS_ANGLE_GRADIAN_BASE_UNIT_HPP |
13 | 13 | |
| 14 | #include <boost/math/constants/constants.hpp> |
| 15 | |
14 | 16 | #include <boost/units/conversion.hpp> |
15 | 17 | #include <boost/units/base_units/angle/radian.hpp> |
16 | 18 | |
17 | | BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,gradian,"gradian","grad",6.28318530718/400.,boost::units::angle::radian_base_unit,-102); |
| 19 | BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,gradian,"gradian","grad",boost::math::constants::two_pi<double>()/400.0,boost::units::angle::radian_base_unit,-102); |
18 | 20 | |
19 | 21 | #if BOOST_UNITS_HAS_BOOST_TYPEOF |
20 | 22 | |