refactor: Fine-grained references support added

This commit is contained in:
Mateusz Pusz
2021-04-07 11:26:45 +02:00
parent afa67c5f43
commit bd862d3517
59 changed files with 400 additions and 68 deletions
+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