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


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.