Re: [Boost-users] Declaring an iterators for std::list contain weak ptrs

3 Mar
2006
3 Mar
'06
8:16 p.m.
James Hughes writes:
[snip]
Now that looks fine to me, but the line where I declare the iterator fails with a
error: Expect ';' before 'pos'
and I don't know why - it seems fine to me.
The line MyPtrList::iterator pos; it's not legal. You have to tell the compiler that MyPtrList::iterator it's a type. Try this: typename MyPtrList::iterator pos; Best regards, Raúl
7063
Age (days ago)
7063
Last active (days ago)
1 comments
2 participants
participants (2)
-
raulh39@ya.com