{"action":"created","issue":{"url":"https://api.github.com/repos/Keno/Cxx.jl/issues/74","labels_url":"https://api.github.com/repos/Keno/Cxx.jl/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/Keno/Cxx.jl/issues/74/comments","events_url":"https://api.github.com/repos/Keno/Cxx.jl/issues/74/events","html_url":"https://github.com/Keno/Cxx.jl/issues/74","id":55347768,"number":74,"title":"length(::pcpp\"llvm::Value\") undefined","user":{"login":"sjkelly","id":2086412,"avatar_url":"https://avatars.githubusercontent.com/u/2086412?v=3","gravatar_id":"","url":"https://api.github.com/users/sjkelly","html_url":"https://github.com/sjkelly","followers_url":"https://api.github.com/users/sjkelly/followers","following_url":"https://api.github.com/users/sjkelly/following{/other_user}","gists_url":"https://api.github.com/users/sjkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/sjkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjkelly/subscriptions","organizations_url":"https://api.github.com/users/sjkelly/orgs","repos_url":"https://api.github.com/users/sjkelly/repos","events_url":"https://api.github.com/users/sjkelly/events{/privacy}","received_events_url":"https://api.github.com/users/sjkelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-23T23:45:16Z","updated_at":"2015-01-25T06:19:22Z","closed_at":null,"body":"I ran into this issue a couple days ago, but I had to wait until we released our Clipper wrapping to report a reproducible bug. \r\n\r\nUsing Clipper.jl: https://github.com/Voxel8/Clipper.jl\r\n\r\n```\r\nusing Clipper\r\nusing Cxx\r\n\r\np = Path()\r\npush!(p, IntPoint(0,0))\r\npush!(p, IntPoint(10,0))\r\npush!(p, IntPoint(10,10))\r\npush!(p, IntPoint(0,10))\r\no = Offset()\r\nr = PolyTree()\r\nadd!(o, p, jtMiter, etClosedPolygon)\r\nexecute!(o, r, 1)\r\nclear!(o)\r\n\r\n@show r\r\nf = first(r)\r\n@show f\r\n@cxx f->Contour # ERROR: LoadError: MethodError: `length` has no method matching length(::Cxx.CppPtr{Cxx.CppValue{Cxx.CppBaseType{symbol(\"llvm::Value\")},(false,false,false)},(false,false,false)})\r\n```\r\n\r\nI get the failure: \r\n\r\n```\r\nsteve:~/.julia/v0.4/Clipper(master)$ julia ./test/polytree.jl \r\nr = Cxx.CppValue{Cxx.CppBaseType{symbol(\"ClipperLib::PolyTree\")},(false,false,false)}(UInt8[0x30,0xf0,0x7f,0xd2,0x4c,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x68,0x47,0x0a,0x00,0x00,0x00,0x00,0x78,0x68,0x47,0x0a,0x00,0x00,0x00,0x00,0x78,0x68,0x47,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xb5,0x76,0x0a,0x00,0x00,0x00,0x00,0x28,0xb5,0x76,0x0a,0x00,0x00,0x00,0x00,0x28,0xb5,0x76,0x0a,0x00,0x00,0x00,0x00])\r\nf = Cxx.CppPtr{Cxx.CppValue{Cxx.CppBaseType{symbol(\"ClipperLib::PolyNode\")},(false,false,false)},(false,false,false)}(Ptr{Void} @0x000000000b5f8c20)\r\nERROR: LoadError: MethodError: `length` has no method matching length(::Cxx.CppPtr{Cxx.CppValue{Cxx.CppBaseType{symbol(\"llvm::Value\")},(false,false,false)},(false,false,false)})\r\nwhile loading /home/steve/.julia/v0.4/Clipper/test/polytree.jl, in expression starting on line 18\r\n```\r\n\r\nI am not sure where this `length` method is being called."},"comment":{"url":"https://api.github.com/repos/Keno/Cxx.jl/issues/comments/71355398","html_url":"https://github.com/Keno/Cxx.jl/issues/74#issuecomment-71355398","issue_url":"https://api.github.com/repos/Keno/Cxx.jl/issues/74","id":71355398,"user":{"login":"sjkelly","id":2086412,"avatar_url":"https://avatars.githubusercontent.com/u/2086412?v=3","gravatar_id":"","url":"https://api.github.com/users/sjkelly","html_url":"https://github.com/sjkelly","followers_url":"https://api.github.com/users/sjkelly/followers","following_url":"https://api.github.com/users/sjkelly/following{/other_user}","gists_url":"https://api.github.com/users/sjkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/sjkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjkelly/subscriptions","organizations_url":"https://api.github.com/users/sjkelly/orgs","repos_url":"https://api.github.com/users/sjkelly/repos","events_url":"https://api.github.com/users/sjkelly/events{/privacy}","received_events_url":"https://api.github.com/users/sjkelly/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T06:19:22Z","updated_at":"2015-01-25T06:19:22Z","body":"No worries! I was pretty stumped, and I am glad this report revealed something. "}}