mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 12:24:26 +02:00
@@ -42,7 +42,10 @@ namespace detail {
|
||||
template<Reference auto R> // TODO: Replace with `v * R` pending https://github.com/BobSteagall/wg21/issues/58.
|
||||
inline constexpr auto make_quantity = [](auto&& v) {
|
||||
using Rep = std::remove_cvref_t<decltype(v)>;
|
||||
return quantity<typename decltype(R)::dimension, typename decltype(R)::unit, Rep>(std::forward<decltype(v)>(v));
|
||||
using ref_type = decltype(R);
|
||||
using dimension = TYPENAME ref_type::dimension;
|
||||
using unit = TYPENAME ref_type::unit;
|
||||
return quantity<dimension, unit, Rep>(std::forward<decltype(v)>(v));
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user