Re: Problem Overloading Function
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Phlox Icon wrote:
> CAI_Motor * GetMotor() { return m_pMotor; }
[snip]
> .def( "GetMotor", (CAI_Motor( CAI_BaseNPC::* )(void))
> &CAI_BaseNPC::GetMotor ) // generates error
You're returning a CAI_Motor* but your cast says you're returning a
CAI_Motor.
- Jim
------------------------------------------------------------------------------