You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I work boost::optional I have a usecase, where I retrieve optional value and I do not necessary want to transform it, but just to use it if it is there, and if not to ignore it.
Let's assume scenario:
boost::optional<std::string> GetTextOpt();
int stoi(std::string_view);
void SleepMillis(int);
In current implementation, workarounds are necessary, like:
Activity