"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman
This is a standard Data Structures class, we're using a book by Bruno Preiss. The idea of a "god object" makes sense to me when you're talking about being able to treat multiple structures and data containers the same way. I take it there's a better way? What do you suggest?
Yes, templates. You're using in your code current code the very thing that eliminates the need for god objects in C++.
Sort of like using std::string to implement char array handling (i.e. doesn't make sense).
Bookmarks