Suppose a method returns something like this
boost::optional<SomeClass> SomeMethod()
{...}
Now suppose I have something like this
boost::optional<SomeClass> val = SomeMethod();
Now my question is how can I extract SomeClass out of val ?
So that I could do something like this:
SomeClass sc = val ?