0
4

2 回答 2

3

Write:

typename list< SKPair<VALUETYPE> >::iterator it = bucket->begin();

The -> is needed here.

于 2012-09-03T02:39:50.760 回答
1

bucket is declared as a pointer, so you need a dereferencing operator to access its members:

auto it = bucket->begin();

Should do the trick if you have C++11's auto available.

于 2012-09-03T03:09:55.243 回答