With std::variant
The lesson describes how std::variant is better than std::optional in terms of error handling.
We'll cover the following...
How to do Error Handling using std::variant?
The last implementation with std::optional
omits one crucial aspect: error handling.
There’s ...