No overload of select
or operator?:
for Optional<T>
#6020
Labels
goal:forward looking
Feature needed at a later date, not connected to a specific use case.
Milestone
Currently the overloads
select(bool condition, T ifTrue, __none_t ifFalse)
select(bool condition, __none_t ifTrue, T ifFalse)
don't exist if the stored value is Optional.Technically it's possible to wrap it this way,
select(true, Optional<T>(some), Optional<T>(none));
but it's not elegant.The text was updated successfully, but these errors were encountered: