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

[FR] operator bool #68

Closed
psiha opened this issue Feb 29, 2024 · 1 comment
Closed

[FR] operator bool #68

psiha opened this issue Feb 29, 2024 · 1 comment

Comments

@psiha
Copy link

psiha commented Feb 29, 2024

wrapper around has_value

ps. don't know if you get notifications for new comments in closed issues: #61

@mingxwa
Copy link
Collaborator

mingxwa commented Feb 29, 2024

While std::any does not have operator bool, proxy is not sufficiently motivated to do so. Besides, since smart pointer usually have operator bool, if assign a default-constructed std::unique_ptr to proxy, proxy::operator bool will become ambiguous.

@mingxwa mingxwa closed this as completed Mar 6, 2024
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

No branches or pull requests

2 participants