Menu

Class methods that return a value

Help
2006-12-12
2013-04-17
  • db_erickson

    db_erickson - 2006-12-12

    I have a class method that returns an int value. When I try to register this function I get the following error:

    luaWrap.h(242) : error C2661: 'easyLua::WrapItPush<FLAGS,TYPE>::WrapItPush' : no overloaded function takes 2 arguments

    If I register the same function with no return value (void) it compiles and runs just fine. Any idea why the return value is causing problems? I have tried this with a couple of different functions with the same results.

     
    • Gavin Bell

      Gavin Bell - 2006-12-14

      Nicely spotted! Sorry I wasn't monitoring the forums, the problem will be fixed in the next release.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.