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'?
The examples in the paper show how I can disambiguate the type of
nonein 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'?