{"action":"reopened","issue":{"url":"https://api.github.com/repos/ThePhD/sol2/issues/665","repository_url":"https://api.github.com/repos/ThePhD/sol2","labels_url":"https://api.github.com/repos/ThePhD/sol2/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/ThePhD/sol2/issues/665/comments","events_url":"https://api.github.com/repos/ThePhD/sol2/issues/665/events","html_url":"https://github.com/ThePhD/sol2/issues/665","id":331942416,"node_id":"MDU6SXNzdWUzMzE5NDI0MTY=","number":665,"title":"overload with float and int","user":{"login":"otristan","id":2362365,"node_id":"MDQ6VXNlcjIzNjIzNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2362365?v=4","gravatar_id":"","url":"https://api.github.com/users/otristan","html_url":"https://github.com/otristan","followers_url":"https://api.github.com/users/otristan/followers","following_url":"https://api.github.com/users/otristan/following{/other_user}","gists_url":"https://api.github.com/users/otristan/gists{/gist_id}","starred_url":"https://api.github.com/users/otristan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otristan/subscriptions","organizations_url":"https://api.github.com/users/otristan/orgs","repos_url":"https://api.github.com/users/otristan/repos","events_url":"https://api.github.com/users/otristan/events{/privacy}","received_events_url":"https://api.github.com/users/otristan/received_events","type":"User","site_admin":false},"labels":[{"id":628277453,"node_id":"MDU6TGFiZWw2MjgyNzc0NTM=","url":"https://api.github.com/repos/ThePhD/sol2/labels/Docs.Are%20Bad","name":"Docs.Are Bad","color":"fef2c0","default":false},{"id":330782349,"node_id":"MDU6TGFiZWwzMzA3ODIzNDk=","url":"https://api.github.com/repos/ThePhD/sol2/labels/Documentation","name":"Documentation","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"ThePhD","id":2886436,"node_id":"MDQ6VXNlcjI4ODY0MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/2886436?v=4","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false},"assignees":[{"login":"ThePhD","id":2886436,"node_id":"MDQ6VXNlcjI4ODY0MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/2886436?v=4","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ThePhD/sol2/milestones/5","html_url":"https://github.com/ThePhD/sol2/milestone/5","labels_url":"https://api.github.com/repos/ThePhD/sol2/milestones/5/labels","id":1780408,"node_id":"MDk6TWlsZXN0b25lMTc4MDQwOA==","number":5,"title":"Documentation","description":"An ever-rolling marker for documentation things.","creator":{"login":"ThePhD","id":2886436,"node_id":"MDQ6VXNlcjI4ODY0MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/2886436?v=4","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":39,"state":"open","created_at":"2016-05-21T14:58:03Z","updated_at":"2018-06-13T14:20:52Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-06-13T10:52:02Z","updated_at":"2018-06-13T14:20:53Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nwith the following example class\r\n```\r\nclass Foo\r\n{\r\npublic:\r\n  Foo() {}\r\n  Foo withAlpha(float alpha) const\r\n  {\r\n    return *this;\r\n  }\r\n  Foo withAlpha(uint8_t alpha) const\r\n  {\r\n    return *this;\r\n  }\r\n};\r\n```\r\nand this binding\r\n```\r\n      lua.new_usertype<Foo>(\"Foo\"\r\n                             , sol::constructors<Foo()>()\r\n                             , sol::call_constructor, sol::constructors<Foo()>()\r\n                             , \"withAlpha\", sol::overload(static_cast<Foo(Foo::*) (uint8_t) const>(&Foo::withAlpha), static_cast<Foo(Foo::*) (float) const>(&Foo::withAlpha))\r\n                             );\r\n```\r\n\r\nthe following lua code\r\n```\r\nfoo = Foo()\r\nfoo:withAlpha(0.1)\r\n```\r\n\r\ncalls the uint8_t version.\r\n\r\nIs this normal ?\r\nI am using lua 5.3.4\r\n\r\nThanks !\r\n"}}
{"actor":{"display_login":"ThePhD"}}