microsoft / proxy

Proxy: Next Generation Polymorphism in C++

Home Page:https://wg21.link/p3086

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FR] operator bool

psiha opened this issue · comments

wrapper around has_value

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

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.