{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/folly/issues/481","repository_url":"https://api.github.com/repos/facebook/folly","labels_url":"https://api.github.com/repos/facebook/folly/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/facebook/folly/issues/481/comments","events_url":"https://api.github.com/repos/facebook/folly/issues/481/events","html_url":"https://github.com/facebook/folly/issues/481","id":177596352,"number":481,"title":"Can't use small_vector::push on mac os x","user":{"login":"YiqiuLiu","id":9411502,"avatar_url":"https://avatars.githubusercontent.com/u/9411502?v=3","gravatar_id":"","url":"https://api.github.com/users/YiqiuLiu","html_url":"https://github.com/YiqiuLiu","followers_url":"https://api.github.com/users/YiqiuLiu/followers","following_url":"https://api.github.com/users/YiqiuLiu/following{/other_user}","gists_url":"https://api.github.com/users/YiqiuLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/YiqiuLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiqiuLiu/subscriptions","organizations_url":"https://api.github.com/users/YiqiuLiu/orgs","repos_url":"https://api.github.com/users/YiqiuLiu/repos","events_url":"https://api.github.com/users/YiqiuLiu/events{/privacy}","received_events_url":"https://api.github.com/users/YiqiuLiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-17T18:14:26Z","updated_at":"2016-09-19T18:40:00Z","closed_at":null,"body":"folly installed using homebrew\r\n\r\n```\r\n#include <folly/small_vector.h>\r\n#include <iostream>\r\n\r\nint main() {\r\n\tfolly::small_vector<int> s;\r\n\ts.push_back(2);\r\n}\r\n```\r\ncauses the error:\r\n```\r\n/usr/local/include/folly/small_vector.h:619:14: error: use of undeclared identifier 'malloc_usable_size'\r\n      return malloc_usable_size(u.pdata_.heap_) / sizeof(value_type);\r\n             ^\r\n/usr/local/include/folly/small_vector.h:651:9: note: in instantiation of member function 'folly::small_vector<int, 1, void, void, void>::capacity' requested here\r\n    if (capacity() == size()) {\r\n        ^\r\n/Users/lyqqq/Desktop/test/folly.cpp:6:4: note: in instantiation of member function 'folly::small_vector<int, 1, void, void, void>::push_back' requested here\r\n        s.push_back(2);\r\n          ^\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/folly/issues/comments/248082770","html_url":"https://github.com/facebook/folly/issues/481#issuecomment-248082770","issue_url":"https://api.github.com/repos/facebook/folly/issues/481","id":248082770,"user":{"login":"Orvid","id":709247,"avatar_url":"https://avatars.githubusercontent.com/u/709247?v=3","gravatar_id":"","url":"https://api.github.com/users/Orvid","html_url":"https://github.com/Orvid","followers_url":"https://api.github.com/users/Orvid/followers","following_url":"https://api.github.com/users/Orvid/following{/other_user}","gists_url":"https://api.github.com/users/Orvid/gists{/gist_id}","starred_url":"https://api.github.com/users/Orvid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orvid/subscriptions","organizations_url":"https://api.github.com/users/Orvid/orgs","repos_url":"https://api.github.com/users/Orvid/repos","events_url":"https://api.github.com/users/Orvid/events{/privacy}","received_events_url":"https://api.github.com/users/Orvid/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T18:40:00Z","updated_at":"2016-09-19T18:40:00Z","body":"Alright, then, what is it defined to? (it's possible that it's been defined to `0`, which isn't how the portability header assumes it works)"}}
{"actor":{"display_login":"Orvid"}}