We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quantity_point_like_traits
quantity_point_traits require to_numerical_value and from_numerical_value member functions.
quantity_point_traits
to_numerical_value
from_numerical_value
quantity_point_like_traits require to_quantity and from_quantity. This is consistent with the quantity_point and std::chrono::time_point design but is inconsistent with quantity_point_traits and may make it harder for the user-defined types (see the example in https://mpusz.github.io/mp-units/2.2/users_guide/use_cases/interoperability_with_other_libraries/#quantity-points-conversions).
to_quantity
from_quantity
quantity_point
std::chrono::time_point
Maybe quantity_point_like_traits should also require to_numerical_value and from_numerical_value?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
quantity_point_traits
requireto_numerical_value
andfrom_numerical_value
member functions.quantity_point_like_traits
requireto_quantity
andfrom_quantity
. This is consistent with thequantity_point
andstd::chrono::time_point
design but is inconsistent withquantity_point_traits
and may make it harder for the user-defined types (see the example in https://mpusz.github.io/mp-units/2.2/users_guide/use_cases/interoperability_with_other_libraries/#quantity-points-conversions).Maybe
quantity_point_like_traits
should also requireto_numerical_value
andfrom_numerical_value
?The text was updated successfully, but these errors were encountered: