forked from aurora-opensource/au
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With a little more care in our definitions, we no longer need separate overloads for `QuantityMaker`! We can just use a unified definition. Someday, this will also let us replace SFINAE with more readable `static_assert`, which is good on the assumption that nobody will ever call `in` or `as` with something that is not compatible with a unit slot. Unfortunately, this is blocked on aurora-opensource#139, because sometimes function calls can get resolved to the deprecated legacy APIs... and this manifests in really weird ways, like the compiler thinking we want "units" of `int` or `double`. This paves the way for aurora-opensource#43, because `SymbolFor` will also be compatible with unit slots. So, not only are we removing one set of overloads; we're also avoiding the need to add _another_ set in the very near future. Test plan: - [x] All Au tests pass - [x] Make sure this would enable upcoming `.in(m)` test to pass - [x] Test AV repo - [x] Measure compile time impact
- Loading branch information
Showing
2 changed files
with
12 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters