-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
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
Creating new categories #233
Comments
In v3 you can specify your own base dimensions arbitrarily, they just need
a name and an abbreviation. see here:
https://github.com/nholthaus/units/blob/v3.x/include/units/core.h#L1117
…On Thu, Sep 12, 2019 at 3:55 AM Kunal Tyagi ***@***.***> wrote:
1. Which version of units you are using
master or 3 (doesn't matter)
Is there a way to create new base categories like length, temperature?
Based on the inheritance diagram of unit<...> it doesn't seem so.
Essentially, I need to create a couple of non-dimensional units (with user
defined conversions between them).
Right now, my functions look like
unitA convert(unitB);
std::tuple<Outunits...> convert(std::tuple<UnitD, Unit E>); // only a few specializations exist
Can I adapt my usage to make better use of this library?
This is related weakly to the broader discussion in #83
<#83>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#233?email_source=notifications&email_token=ACOYOH64R4ZYXA7XAHD6AIDQJHYX7A5CNFSM4IWAOZOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HK5FOOA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACOYOHYVHWBQKYYA2NCNBJDQJHYX7ANCNFSM4IWAOZOA>
.
|
Great. So just EditUpdateSo, I've a system working, I don't know how well designed it is. I've copied some from the "show off thread". My system can be found at this gist. Would this be the correct place to ask for feedback? Issues
|
units
you are usingmaster or 3 (doesn't matter)
Is there a way to create new
base categories
likelength
,temperature
? Based on the inheritance diagram ofunit<...>
it doesn't seem so.Essentially, I need to create a couple of non-dimensional units (with user defined conversions between them).
Right now, my functions look like
Can I adapt my usage to make better use of this library?
This is related weakly to the broader discussion in #83
The text was updated successfully, but these errors were encountered: