Skip to content

data() method wrong return type #7

@uchenily

Description

@uchenily

The data() method seems to get a wrong return type:

    auto data() const noexcept {
        if constexpr (bytes_saved() > 0)
            return compressed_data; // unsigned char[]
        else
            return raw_data; // huffman_string_container
    }

Should return raw_data here be changed to return raw_data.data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions