Skip to content

Box_intersection_d: Can we make the Callback a const reference ? #6455

Description

@afabri

Issue Details

In the package for fast box intersections in the API we write Callback callback. Is it acceptable to turn that into const Callback& callback? I would like to do that for performance reasons. I would also document it. This may imply changes on the users code. Even in the PMP package I have to make some data members of callbacks mutable, as the Callback::operator()(Box*,Box*) must be const. Alternatvely, we could switch to Callback& callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions