Skip to content

PRO_DEF_FREE_DISPATCH fails to perform ADL #219

@mingxwa

Description

@mingxwa

The following code won't compile, while it should.

#include <string>

#include "proxy.h"

PRO_DEF_FREE_DISPATCH(FreeToString, std::to_string, ToString);

struct TestFacade : pro::facade_builder
    ::add_convention<FreeToString, std::string(), std::string() const>
    ::build {};

int main() {
  auto p = pro::make_proxy<TestFacade>(123);
  ToString(*p);
}

Metadata

Metadata

Assignees

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