-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow use of operator->
with huffman::table::const_iterator
#52
Conversation
a59a5b8
to
115422e
Compare
operator->
with huffman::table
iteratoroperator->
with huffman::table::const_iterator
115422e
to
e004d4e
Compare
I didn't document much. The implementation of |
cce3ecc
to
52f27b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of horrifying how much code it takes for this. Can we go over this in person or on a call?
ee522c2
to
52f27b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is blocking you from doing something else feel free to merge it in but I'd rather discuss it first, maybe next week.
- I'd like to understand it
- I don't think it's actually worth all the added code, given that the table const_iterator is just an implementation detail of our library.
Yeah let's wait. Hopefully I can convince you otherwise after chatting about it :) |
Replace use of `views::transform` with a custom view type `detail::base_view<V, B>` that casts a derived type (i.e. elements of view `V`) to base `B`. `detail::base_view<V, B>` requires the reference type of underlying view `V` be a true reference, thus `detail::base_view<V, B>::iterator` defines `operator->` to return a pointer to `B*`. resolves #49 Change-Id: I2c9d14705bd5a0d8f7e562006913906d40c7fe86
52f27b3
to
555ae92
Compare
Replace use of
views::transform
with a custom view typedetail::base_view<V, B>
that casts a derived type (i.e. elements ofview
V
) to baseB
.detail::base_view<V, B>
requires the reference type of underlying viewV
be a true reference, thusdetail::base_view<V, B>::iterator
defines
operator->
to return a pointer toB*
.resolves #49
Change-Id: I2c9d14705bd5a0d8f7e562006913906d40c7fe86