Skip to content
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

Merged
merged 1 commit into from
Jun 26, 2023

Commits on Jun 26, 2023

  1. Allow use of operator-> with huffman::table::const_iterator

    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
    oliverlee committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    555ae92 View commit details
    Browse the repository at this point in the history