refactor: Fine-grained references support added

This commit is contained in:
Mateusz Pusz committed 2021-04-07 11:26:45 +02:00
1 parent afa67c5f43
commit bd862d3517
59 files changed
+400 -68

No files matched your search

+8 -2
View File
@@ -58,12 +58,18 @@ They are defined using the `reference` class template::
#ifdef UNITS_REFERENCES
namespace references {
namespace length_references {
inline constexpr auto km = reference<dim_length, kilometre>{};
inline constexpr auto h = reference<dim_time, hour>{};
}
} // namespace length_references
namespace references {
using namespace length_references;
} // namespace references
#endif // UNITS_REFERENCES