-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
The examples in the paper show how I can disambiguate the type of none in the following case:
optional<unique_ptr<int>> o1 = none<optional>;
assert (!o1);
optional<unique_ptr<int>> o2 = none<unique_ptr>;
assert (o2);But I cannot figure out, if it helps me with initializing an optional optional:
optional<optional<int>> o1 = none<optional<int>>; // possbile?
assert (o1);
optional<optional<int>> o2 = none<optional<optional<int>>>; // possible?
assert (!o2);Does this paper allow me to initialize an optional at any 'depth'?
Reactions are currently unavailable