Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRO_DEF_FREE_DISPATCH fails to perform ADL #219

Closed
mingxwa opened this issue Dec 14, 2024 · 0 comments · Fixed by #220
Closed

PRO_DEF_FREE_DISPATCH fails to perform ADL #219

mingxwa opened this issue Dec 14, 2024 · 0 comments · Fixed by #220
Assignees
Labels
bug Something isn't working p1

Comments

@mingxwa
Copy link
Collaborator

mingxwa commented Dec 14, 2024

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);
}
@mingxwa mingxwa added bug Something isn't working p1 labels Dec 14, 2024
@mingxwa mingxwa self-assigned this Dec 14, 2024
@mingxwa mingxwa changed the title PRO_DEF_FREE_DISPATCH fails to execute ADL PRO_DEF_FREE_DISPATCH fails to perform ADL Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant