-
-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
designDesign-related discussionDesign-related discussion
Milestone
Description
Such constants could have superpowers. They could implicitly convert to a quantity and provide additional compile-time overflow protection as discussed in #669_
One possible problem is to decide which representation type should be used in case we want to allow CTAD (e.g., quantity{si::standard_gravity}). Forcing std::arithmetic types might be a no-go for some projects that use safe numeric wrappers. This is actually where the current unit-based approach shines. The constant is orthogonal to the representation type in a quantity.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
designDesign-related discussionDesign-related discussion