Boost logo

Boost Users :

From: raulh39_at_[hidden]
Date: 2006-03-03 15:16:17


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

 


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