-
Notifications
You must be signed in to change notification settings - Fork 16
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
P0196R2 -- none() and nested optional #14
Comments
Sorry I missed this issue. Currently both contains none.
So if the following was possible
this would mean that Maybe none_type should be defined by specialization then. I'll comeback to you if I can change this. This works however
|
After some changes
and
we can have what you requested as possible
My question is if this is the behavior we want. |
I am not qualified to answer whether we want it or not. My observation was that the proposal did not clearly describe what happens in such case. If you say, "such use case is intentionally not addressed by the proposal" I am satisfied with this statement. |
I've rolled back these changes. |
The examples in the paper show how I can disambiguate the type of
none
in the following case:But I cannot figure out, if it helps me with initializing an optional optional:
Does this paper allow me to initialize an optional at any 'depth'?
The text was updated successfully, but these errors were encountered: