Skip to content

conversion_dispatch (aka. explicit_conversion_dispatch) won't work for reference-retuning overloads #11

@mingxwa

Description

@mingxwa

The follow code is well-formed but will be rejected:

#include <proxy/proxy.h>

struct Base {};
struct Derived : Base {};

struct MyFacade : pro::facade_builder
    ::add_convention<pro::conversion_dispatch, Base&()>
    ::build {};

int main() {
  static_assert(pro::proxiable<Derived*, MyFacade>);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions