Skip to content

ResourceRetriever and Resource methods are now const #532

Closed
@mkoval

Description

@mkoval

It looks like #517 const-qualified all of the methods on the ResourceRetriever and Resource classes. I intentionally left these non-const when I added these classes in #464 so the user can implement a cache in his or her custom implementations. This is important when retrieving resources over the network or when resolving the URI is computationally expensive.

I just ran into this situation myself and had to make a bunch of my member variables mutable as a workaround. I don't see any advantage to making these methods const, so I would prefer to remove the const-qualifiers added in #517.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions