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

Forbid conversion from rvalue of proxy to proxy_view#352

Merged
mingxwa merged 1 commit intomicrosoft:mainfrom
mingxwa:user/mingxwa/ban-proxy-view-from-rvalue
Sep 19, 2025
Merged

Forbid conversion from rvalue of proxy to proxy_view#352
mingxwa merged 1 commit intomicrosoft:mainfrom
mingxwa:user/mingxwa/ban-proxy-view-from-rvalue

Conversation

@mingxwa
Copy link
Contributor

@mingxwa mingxwa commented Sep 18, 2025

Conversion from rvalue of proxy to proxy_view is an anti-pattern. It should be banned. Added unit tests to cover this change.

Resolves #351

@mingxwa mingxwa merged commit 46278bd into microsoft:main Sep 19, 2025
10 checks passed
@mingxwa mingxwa deleted the user/mingxwa/ban-proxy-view-from-rvalue branch September 19, 2025 08:10
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.

Creating a pro::proxy_view from a pro::weak_proxy

2 participants