feat: quantity is now a structural type

Resolves #411
This commit is contained in:
Mateusz Pusz
2022-12-23 18:03:15 +01:00
parent e2a2076c8d
commit dd8fb22e6e

View File

@@ -78,8 +78,9 @@ concept invoke_result_of_ =
*/ */
template<Reference auto R, RepresentationOf<R.quantity_spec.character> Rep = double> template<Reference auto R, RepresentationOf<R.quantity_spec.character> Rep = double>
class quantity { class quantity {
Rep number_;
public: public:
Rep number_;
// member types and values // member types and values
static constexpr Reference auto reference = R; static constexpr Reference auto reference = R;
static constexpr QuantitySpec auto quantity_spec = reference.quantity_spec; static constexpr QuantitySpec auto quantity_spec = reference.quantity_spec;