
AMDG Raymond Wan wrote:
Andrew Sutton wrote:
template <class EdgeIterator> adjacency_list(EdgeIterator first, EdgeIterator last,
template <typename EdgeIterator> adjacency_matrix(EdgeIterator first,
It's not the same because of "typename"? As a toy example, I've taken the MST example and have modified it a lot to get this:
They're basically the same constructor. The extra int (m) in adjacency_list is only used to disambiguate the signature from another constructor. The value is effectively ignored, IIRC.
I see -- then the fact that one says "class" and the other says "typename" is merely a typo? Or is there a difference, but based on my elementary level, that difference is unimportant? (I'm guessing the latter...)
class and typename are equivalent in this context. In Christ, Steven Watanabe