How to input from stream to enum type?
I can do it so
unsigned int sex = 0; stream >> sex; student.m_bio.sex = static_cast<Sex>(sex);
Otherwise?