3 ms·
Ok, makes sense. By the way, switching on a type code like that is the classic use case for virtual functions. http://sourcemaking.com/refactoring/replace-con
by foobarbazqux 13y ago
Ok, makes sense. By the way, switching on a type code like that is the classic use case for virtual functions.
http://sourcemaking.com/refactoring/replace-conditional-with-polymorphism http://sourcemaking.com/refactoring/replace-conditional-with...