{"action":"opened","issue":{"url":"https://api.github.com/repos/vit-vit/CTPL/issues/4","labels_url":"https://api.github.com/repos/vit-vit/CTPL/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/vit-vit/CTPL/issues/4/comments","events_url":"https://api.github.com/repos/vit-vit/CTPL/issues/4/events","html_url":"https://github.com/vit-vit/CTPL/issues/4","id":112840836,"number":4,"title":" error: invalid use of non-static member function","user":{"login":"hanito","id":5985345,"avatar_url":"https://avatars.githubusercontent.com/u/5985345?v=3","gravatar_id":"","url":"https://api.github.com/users/hanito","html_url":"https://github.com/hanito","followers_url":"https://api.github.com/users/hanito/followers","following_url":"https://api.github.com/users/hanito/following{/other_user}","gists_url":"https://api.github.com/users/hanito/gists{/gist_id}","starred_url":"https://api.github.com/users/hanito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanito/subscriptions","organizations_url":"https://api.github.com/users/hanito/orgs","repos_url":"https://api.github.com/users/hanito/repos","events_url":"https://api.github.com/users/hanito/events{/privacy}","received_events_url":"https://api.github.com/users/hanito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-22T16:27:14Z","updated_at":"2015-10-22T16:27:14Z","closed_at":null,"body":"Hello,\r\nI am trying to call  \"call_from_thread_description\" from another function inside a class and I am getting the following error. What am I missing??\r\n\r\nDo you have an example oh how to use function from a class. Thank you\r\n\r\n/home/hani/workspace/transform/Transform.cpp:127:104: error: invalid use of non-static member function\r\ndesults.push_back(thread_pool.push(Transform::call_from_thread_description, data[i], data[j], res));\r\n\r\n\r\nvoid Transform::call_from_thread_description(const vector<string> & e1, const <string> & e2, <string>  & res){ //DO SOMETHING HERE}\r\n\r\nvoid Transform::computer_intersection()\r\n{\r\n   vector<string> res;\r\n  for(int i = 0; i < data.size();i++)\r\n  {\r\n    data_sets tmp;\r\n    for(int j = 0; j < data.size();j++)\r\n    {\r\n      results.push_back(thread_pool.push(Transform::call_from_thread_description, data[i], data[j], res));\r\n      if(j % Num_Threads == 0 || j == data.size() -1)\r\n      {\r\n        results.clear();\r\n      }\r\n    }\r\n  }\r\n}\r\n"}}