Skip to content

invoke() does not support volatile, ref-qualified, or C-style variadic member functions #33

@Raclamusi

Description

@Raclamusi

The current implementation of yk::polyfill::invoke() lacks support for several member function qualifiers and signatures.
Specifically, it cannot handle:

  • volatile-qualified member functions (e.g., void C::f() volatile)
  • ref-qualified member functions (e.g., void C::f() & or void C::f() &&)
  • C-style variadic member functions (e.g., void C::f(int, ...))

To provide full coverage, the implementation should either:

  1. Add exhaustive overloads for all combinations of cv-qualifiers, ref-qualifiers, noexcept and ellipsis.
  2. Refactor the dispatch logic using is_member_function_pointer to handle member function pointers more generically.

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