JayBeams  0.1
Another project to have fun coding.
char_list_validator.cpp
Go to the documentation of this file.
2 
3 #include <sstream>
4 #include <stdexcept>
5 
7  std::ostringstream os;
8  os << "enum value ('" << char(x) << "'=" << x
9  << ") does not match any of the expected values";
10  throw std::runtime_error(os.str());
11 }
void char_list_validation_failed(int x)
Helper function, raises an exception describing a mismatched value.