3 #ifdef WISE_ENUM_NO_EXCEPT
6 #define WISE_ENUM_OPTIONAL_BAD_ACCESS std::abort()
14 struct bad_optional_access
: std::exception
{
15 const char *what() const noexcept override
{
16 return "Error, attempt to access valueless optional!";
19 } // namespace wise_enum
21 #define WISE_ENUM_OPTIONAL_BAD_ACCESS throw bad_optional_access{}
This page took 0.031892 seconds and 4 git commands to generate.