| 13 | // --------------------------------------------------------------------------------------------------- |
| 14 | |
| 15 | class bad_optional_access : public std::exception |
| 16 | { |
| 17 | public: |
| 18 | bad_optional_access() = default; |
| 19 | const char *what() const noexcept { return "Optional has no value"; } |
| 20 | }; |
| 21 | |
| 22 | // --------------------------------------------------------------------------------------------------- |
| 23 |