|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-17 16:10:56
Rob Benton wrote:
> I'd appreciate it if someone could tell me how to debug the error I'm
> getting. I've got a class with a member function like this:
>
> bool Instruction::button_press(GdkEventButton *,
> boost::weak_ptr<Instruction>,
> boost::weak_ptr<Instruction>,
> boost::weak_ptr<Instruction>,
> boost::weak_ptr<Instruction>);
>
> ===========================================================================
> Instruction.C: In member function `bool
> Instruction::button_press(GdkEventButton*,
> boost::weak_ptr<Instruction>,
> boost::weak_ptr<Instruction>, boost::weak_ptr<Instruction>,
> boost::weak_ptr<Instruction>)':
> Instruction.C:138: error: `top' has incomplete type
> /usr/include/boost/shared_ptr.hpp:43: error: declaration of `struct
> boost::weak_ptr<Instruction>'
Have you included boost/weak_ptr.hpp?
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