mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
docs: "Quantity References" chapter fixed
This commit is contained in:
@@ -121,13 +121,19 @@ They are defined using the `reference` class template::
|
|||||||
namespace length_references {
|
namespace length_references {
|
||||||
|
|
||||||
inline constexpr auto km = reference<dim_length, kilometre>{};
|
inline constexpr auto km = reference<dim_length, kilometre>{};
|
||||||
inline constexpr auto h = reference<dim_time, hour>{};
|
|
||||||
|
|
||||||
} // namespace length_references
|
} // namespace length_references
|
||||||
|
|
||||||
|
namespace time_references {
|
||||||
|
|
||||||
|
inline constexpr auto h = reference<dim_time, hour>{};
|
||||||
|
|
||||||
|
} // namespace time_references
|
||||||
|
|
||||||
namespace references {
|
namespace references {
|
||||||
|
|
||||||
using namespace length_references;
|
using namespace length_references;
|
||||||
|
using namespace time_references;
|
||||||
|
|
||||||
} // namespace references
|
} // namespace references
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user