Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Fix ADL for free function accessors#220

Merged
mingxwa merged 2 commits intomicrosoft:mainfrom
mingxwa:user/mingxwa/fix-adl
Dec 16, 2024
Merged

Fix ADL for free function accessors#220
mingxwa merged 2 commits intomicrosoft:mainfrom
mingxwa:user/mingxwa/fix-adl

Conversation

@mingxwa
Copy link
Contributor

@mingxwa mingxwa commented Dec 15, 2024

Changes

  • Exposed proxy_indirect_accessor as a public API and added documentation.
  • Revised the implementation of ___PRO_DEF_FREE_ACCESSOR_TEMPLATE to use std::conditional_t<C::is_direct, proxy<F>, proxy_indirect_accessor<F>> (details::adl_accessor_arg_t) rather than accessor as the type of the operand to perform ADL correctly.
  • Added a unit test case for this change.
  • Revised related spec accordingly.

Resolves #219

@mingxwa mingxwa requested review from guominrui and tian-lt December 15, 2024 03:02
Copy link
Collaborator

@tian-lt tian-lt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mingxwa mingxwa merged commit a6835a2 into microsoft:main Dec 16, 2024
@mingxwa mingxwa deleted the user/mingxwa/fix-adl branch December 16, 2024 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PRO_DEF_FREE_DISPATCH fails to perform ADL

3 participants