Boost logo

Boost Users :

Subject: Re: [Boost-users] BGL -- adjacency_matrix, graph concepts
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-06 12:50:54


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net