Skip to content

Change unit of a variable #373

Closed Answered by JohelEGP
bansan85 asked this question in Q&A
Discussion options

You must be logged in to vote

For quantity types of the same dimension q0, q1, ..., qn, two possible options include std::variant<q0, q1, ..., qn> and std::common_type<q0, q1, ..., qn>.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bansan85
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants