Scope quandary with namespaces, function templates, and static data
- by Adrian McCarthy
This scoping problem seems like the type of C++ quandary that Scott Meyers would have addressed in one of his Effective C++ books.
I have a function, Analyze, that does some analysis on a range of data. The function is called from a few places with different types of iterators, so I have made it a template (and thus implemented it in a header…