Skip to content

Use concepts for detecting method presence #225

@psiha

Description

@psiha

Ideally I'd ask if you could 'simply' drop precpp20 (or even 23) support 😊 but if that is not feasible can you please use concepts (instead of SFINAE and old meta tricks) wherever possible or at least for detecting the presence of certain methods (like push_back) - with your current approach I got compilation errors w/ explicit object parameter and constructs like T{}.push_back() (as the T{} rvalue cannot bind to an lvalue reference like this T &).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions