-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add rsl::StrongType
#87
Conversation
Codecov Report
@@ Coverage Diff @@
## main #87 +/- ##
==========================================
+ Coverage 99.05% 99.06% +0.01%
==========================================
Files 10 11 +1
Lines 211 215 +4
==========================================
+ Hits 209 213 +4
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
bb0a57e
to
eee954d
Compare
I added |
743b547
to
0ed47ec
Compare
8cb1c03
to
8d97fdb
Compare
8d97fdb
to
9296fdc
Compare
Added missing Doxygen comments |
Strong type aliases are a useful pattern but they require just enough boilerplate that you don't typically see codebases implement them and they're just small and non-specific enough that libraries don't provide them. This type aims to fill that gap so that we can actually use strong type aliases in our code.
Motivating example:
The presence of a strong type alias ensures that the order of arguments is correct. Without that strong alias, it would be easy to accidentally swap the two arguments without realizing it.