Skip to content

Commit

Permalink
refactor: limit unit constants to those used in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Dec 26, 2020
1 parent 8609a61 commit 0f646bb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
42 changes: 21 additions & 21 deletions src/include/units/physical/si/base/length.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,27 +153,27 @@ constexpr auto operator"" _q_au(long double l) { return length<astronomical_unit
inline namespace unit_constants {

inline constexpr auto m = length<metre, detail::one_rep>{};
inline constexpr auto ym = length<yoctometre, detail::one_rep>{};
inline constexpr auto zm = length<zeptometre, detail::one_rep>{};
inline constexpr auto am = length<attometre, detail::one_rep>{};
inline constexpr auto fm = length<femtometre, detail::one_rep>{};
inline constexpr auto pm = length<picometre, detail::one_rep>{};
inline constexpr auto nm = length<nanometre, detail::one_rep>{};
inline constexpr auto um = length<micrometre, detail::one_rep>{};
inline constexpr auto mm = length<millimetre, detail::one_rep>{};
inline constexpr auto cm = length<centimetre, detail::one_rep>{};
inline constexpr auto dm = length<decimetre, detail::one_rep>{};
inline constexpr auto dam = length<decametre, detail::one_rep>{};
inline constexpr auto hm = length<hectometre, detail::one_rep>{};
inline constexpr auto km = length<kilometre, detail::one_rep>{};
inline constexpr auto Mm = length<megametre, detail::one_rep>{};
inline constexpr auto Gm = length<gigametre, detail::one_rep>{};
inline constexpr auto Tm = length<terametre, detail::one_rep>{};
inline constexpr auto Pm = length<petametre, detail::one_rep>{};
inline constexpr auto Em = length<exametre, detail::one_rep>{};
inline constexpr auto Zm = length<zettametre, detail::one_rep>{};
inline constexpr auto Ym = length<yottametre, detail::one_rep>{};
inline constexpr auto au = length<astronomical_unit, detail::one_rep>{};
// inline constexpr auto ym = length<yoctometre, detail::one_rep>{};
// inline constexpr auto zm = length<zeptometre, detail::one_rep>{};
// inline constexpr auto am = length<attometre, detail::one_rep>{};
// inline constexpr auto fm = length<femtometre, detail::one_rep>{};
// inline constexpr auto pm = length<picometre, detail::one_rep>{};
// inline constexpr auto nm = length<nanometre, detail::one_rep>{};
// inline constexpr auto um = length<micrometre, detail::one_rep>{};
// inline constexpr auto mm = length<millimetre, detail::one_rep>{};
// inline constexpr auto cm = length<centimetre, detail::one_rep>{};
// inline constexpr auto dm = length<decimetre, detail::one_rep>{};
// inline constexpr auto dam = length<decametre, detail::one_rep>{};
// inline constexpr auto hm = length<hectometre, detail::one_rep>{};
// inline constexpr auto km = length<kilometre, detail::one_rep>{};
// inline constexpr auto Mm = length<megametre, detail::one_rep>{};
// inline constexpr auto Gm = length<gigametre, detail::one_rep>{};
// inline constexpr auto Tm = length<terametre, detail::one_rep>{};
// inline constexpr auto Pm = length<petametre, detail::one_rep>{};
// inline constexpr auto Em = length<exametre, detail::one_rep>{};
// inline constexpr auto Zm = length<zettametre, detail::one_rep>{};
// inline constexpr auto Ym = length<yottametre, detail::one_rep>{};
// inline constexpr auto au = length<astronomical_unit, detail::one_rep>{};

} // namespace unit_constants

Expand Down
22 changes: 11 additions & 11 deletions src/include/units/physical/si/base/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ constexpr auto operator"" _q_d(long double l) { return time<day, long double>(l)

inline namespace unit_constants {

inline constexpr auto ys = time<yoctosecond, detail::one_rep>{};
inline constexpr auto zs = time<zeptosecond, detail::one_rep>{};
inline constexpr auto as = time<attosecond, detail::one_rep>{};
inline constexpr auto fs = time<femtosecond, detail::one_rep>{};
inline constexpr auto ps = time<picosecond, detail::one_rep>{};
inline constexpr auto ns = time<nanosecond, detail::one_rep>{};
inline constexpr auto us = time<microsecond, detail::one_rep>{};
inline constexpr auto ms = time<millisecond, detail::one_rep>{};
// inline constexpr auto ys = time<yoctosecond, detail::one_rep>{};
// inline constexpr auto zs = time<zeptosecond, detail::one_rep>{};
// inline constexpr auto as = time<attosecond, detail::one_rep>{};
// inline constexpr auto fs = time<femtosecond, detail::one_rep>{};
// inline constexpr auto ps = time<picosecond, detail::one_rep>{};
// inline constexpr auto ns = time<nanosecond, detail::one_rep>{};
// inline constexpr auto us = time<microsecond, detail::one_rep>{};
// inline constexpr auto ms = time<millisecond, detail::one_rep>{};
inline constexpr auto s = time<second, detail::one_rep>{};
inline constexpr auto min = time<minute, detail::one_rep>{};
inline constexpr auto h = time<hour, detail::one_rep>{};
inline constexpr auto d = time<day, detail::one_rep>{};
// inline constexpr auto min = time<minute, detail::one_rep>{};
// inline constexpr auto h = time<hour, detail::one_rep>{};
// inline constexpr auto d = time<day, detail::one_rep>{};

} // namespace unit_constants

Expand Down

0 comments on commit 0f646bb

Please sign in to comment.