Skip to content

Conversation

@mingxwa
Copy link
Member

@mingxwa mingxwa commented Aug 16, 2025

The following code compiles today, but should be rejected:

#include <proxy/proxy.h>

struct Any : pro::facade_builder::build {};

int main() {
  auto p = pro::make_proxy<Any>(123);
  auto pi = *p; // proxy_indirect_accessor shall not be copied or moved. Any subsequent use of pi invokes undefined behavior.
}

Added unit tests accordingly.

@mingxwa mingxwa requested review from guominrui and tian-lt August 16, 2025 11:12
@mingxwa mingxwa merged commit 8934033 into microsoft:main Aug 18, 2025
9 checks passed
@mingxwa mingxwa deleted the user/mingxwa/ctor branch August 18, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants