Special case: optional<bool> and optional<T*>
This lesson highlights a case where using std::optional is not recommended.
We'll cover the following...
We'll cover the following...
While you can use optional on any type, you need to pay attention when trying to wrap boolean or pointers.
optional<bool>
- what does it model? With such a construction, you have a tri-state ...