C++: variant

Let's suppose I have a system that handles students, teachers and crew of a school. To model that in an object oriented style, I would have a class hierarchy similar to this one: And my collection would be defined like this: where the size_t ID would be the key of the map. Since I do… Continue reading C++: variant