forked from mpusz/mp-units
refactor: rename unit_constants to references
Addresses https://github.com/mpusz/units/pull/261#discussion_r596663522.
This commit is contained in:
committed by
Mateusz Pusz
parent
1068f7d182
commit
018c5837f9
@@ -46,10 +46,10 @@ constexpr auto operator"" _q_rad(long double l) { return angle<radian, long doub
|
||||
|
||||
} // namespace literals
|
||||
|
||||
inline namespace unit_constants {
|
||||
inline namespace references {
|
||||
|
||||
inline constexpr auto rad = reference<dim_angle<>, radian>{};
|
||||
|
||||
} // namespace unit_constants
|
||||
} // namespace references
|
||||
|
||||
} // namespace units
|
||||
|
||||
@@ -58,7 +58,7 @@ using reference_divide = detail::reference_divide_impl<
|
||||
* This type is intended to be used in the unit constants definition:
|
||||
*
|
||||
* @code{.cpp}
|
||||
* namespace unit_constants {
|
||||
* namespace references {
|
||||
*
|
||||
* inline constexpr auto m = reference<dim_length, metre>{};
|
||||
* inline constexpr auto km = reference<dim_length, kilometre>{};
|
||||
@@ -69,7 +69,7 @@ using reference_divide = detail::reference_divide_impl<
|
||||
* Unit constants simplify quantity creation:
|
||||
*
|
||||
* @code{.cpp}
|
||||
* using namespace units::isq::si::unit_constants;
|
||||
* using namespace units::isq::si::references;
|
||||
*
|
||||
* auto d = 123 * m;
|
||||
* auto v = 70 * km / h;
|
||||
|
||||
Reference in New Issue
Block a user