Boost logo

Boost Users :

From: Rob Benton (rob.benton_at_[hidden])
Date: 2005-04-17 13:56:22


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>'
Instruction.C:138: error: `left' has incomplete type
/usr/include/boost/shared_ptr.hpp:43: error: declaration of `struct
    boost::weak_ptr<Instruction>'
Instruction.C:138: error: `right' has incomplete type
/usr/include/boost/shared_ptr.hpp:43: error: declaration of `struct
    boost::weak_ptr<Instruction>'
Instruction.C:138: error: `bottom' has incomplete type
/usr/include/boost/shared_ptr.hpp:43: error: declaration of `struct
    boost::weak_ptr<Instruction>'
===========================================================================

Thanks,
Rob


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