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
6845
Age (days ago)
6845
Last active (days ago)
0 comments
1 participants
participants (1)
-
raulh39@ya.com