Skip to content

Awful callable types #1

Open
Open
@brunocodutra

Description

@brunocodutra

Have you considered adding callable types that overload the operator () on combinations of lr-value-ness vs const-ness?

E.g.

struct void_ {};

struct rvalueconstcallable {
    constexpr void_ operator ()(...) const&& {
        return {};
    }
};

This would be useful to check whether generic algorithms forward callable objects correctly up to the point they are invoked.

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