{"action":"created","issue":{"url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/4","repository_url":"https://api.github.com/repos/yanwei1983/luatinkerE","labels_url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/4/comments","events_url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/4/events","html_url":"https://github.com/yanwei1983/luatinkerE/issues/4","id":147085097,"number":4,"title":"注册子类成员函数时..如果该成员函数为父类所有..则编译报错","user":{"login":"tangyu1018","id":11938409,"avatar_url":"https://avatars.githubusercontent.com/u/11938409?v=3","gravatar_id":"","url":"https://api.github.com/users/tangyu1018","html_url":"https://github.com/tangyu1018","followers_url":"https://api.github.com/users/tangyu1018/followers","following_url":"https://api.github.com/users/tangyu1018/following{/other_user}","gists_url":"https://api.github.com/users/tangyu1018/gists{/gist_id}","starred_url":"https://api.github.com/users/tangyu1018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangyu1018/subscriptions","organizations_url":"https://api.github.com/users/tangyu1018/orgs","repos_url":"https://api.github.com/users/tangyu1018/repos","events_url":"https://api.github.com/users/tangyu1018/events{/privacy}","received_events_url":"https://api.github.com/users/tangyu1018/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-09T03:44:33Z","updated_at":"2016-04-09T07:51:01Z","closed_at":null,"body":"例如如下类\r\nclass pppFoo\r\n{\r\npublic:\r\n\tbool test1()\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n};\r\n\r\nclass cccFoo :public pppFoo\r\n{\r\npublic:\r\n\tbool test2()\r\n\t{\r\n\t\treturn true;\r\n\t}\r\n};\r\n\r\n注册时:\r\n\tlua_tinker::class_add<cccFoo>(ls, \"pppFoo\", true);\r\n\tlua_tinker::class_con<cccFoo>(ls, lua_tinker::constructor<cccFoo>::invoke);\r\n\tlua_tinker::class_def<cccFoo>(ls, \"test1\", &cccFoo::test1);//此处报错\r\n报错:\r\n错误\tC2825\t'overload_functor': 当后面跟“::”时必须为类或命名空间\tNFLuaScriptPlugin\r\n"},"comment":{"url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/comments/207737405","html_url":"https://github.com/yanwei1983/luatinkerE/issues/4#issuecomment-207737405","issue_url":"https://api.github.com/repos/yanwei1983/luatinkerE/issues/4","id":207737405,"user":{"login":"yanwei1983","id":17567999,"avatar_url":"https://avatars.githubusercontent.com/u/17567999?v=3","gravatar_id":"","url":"https://api.github.com/users/yanwei1983","html_url":"https://github.com/yanwei1983","followers_url":"https://api.github.com/users/yanwei1983/followers","following_url":"https://api.github.com/users/yanwei1983/following{/other_user}","gists_url":"https://api.github.com/users/yanwei1983/gists{/gist_id}","starred_url":"https://api.github.com/users/yanwei1983/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanwei1983/subscriptions","organizations_url":"https://api.github.com/users/yanwei1983/orgs","repos_url":"https://api.github.com/users/yanwei1983/repos","events_url":"https://api.github.com/users/yanwei1983/events{/privacy}","received_events_url":"https://api.github.com/users/yanwei1983/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T07:51:01Z","updated_at":"2016-04-09T07:51:01Z","body":"lua_tinker::class_add<pppFoo>(ls, \"pppFoo\", true);  //注册基类\r\nlua_tinker::class_add<cccFoo>(ls, \"cccFoo\", true);   //注册派生类\r\nlua_tinker::class_ini<cccFoo,pppFoo>(ls);  //注册派生关系\r\n\r\nlua_tinker::class_con<cccFoo>(ls, lua_tinker::constructor<cccFoo>::invoke); //注册构造函数，如果不需要在lua构造，则不需要调用\r\nlua_tinker::class_def<pppFoo>(ls, \"test1\", &pppFoo::test1) //注册基类函数\r\nlua_tinker::class_def<cccFoo>(ls, \"test2\", &cccFoo::test2) //注册派生类函数\r\n\r\nlua:\r\nlocal foo = cccFoo();\r\nfoo:test2(); --call cccFoo::test2\r\nfoo:test1();--call pppFoo::test2\r\n"}}