{"action":"created","issue":{"url":"https://api.github.com/repos/opengm/opengm/issues/417","labels_url":"https://api.github.com/repos/opengm/opengm/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/opengm/opengm/issues/417/comments","events_url":"https://api.github.com/repos/opengm/opengm/issues/417/events","html_url":"https://github.com/opengm/opengm/issues/417","id":128567534,"number":417,"title":"GraphicalModel::addVariable uses size_t instead of IndexType","user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T15:56:12Z","updated_at":"2016-01-25T18:32:11Z","closed_at":"2016-01-25T18:32:11Z","body":"[Here](https://github.com/opengm/opengm/blob/d1946b5fc60ba032fdb0e15a0fe657bd6e47df3d/include/opengm/graphicalmodel/graphicalmodel.hxx#L377), ```IndexType``` should be used instead of ```size_t```. Cannot use ```GraphicalModel::addVariable``` when my IndexType and LabelType is ```int``` instead. \r\nAlso, there is generally a mismatch between the argument types of the graphical model space functions and the graphical model functions. The type of the ```GraphicalModel::addVariable``` argument is ```IndexType```, but in case of ```DiscreteSpace::addVariable``` it is ```LabelType```. Both are usually identical, but the existence of different space template parameters should not require them to be identical."},"comment":{"url":"https://api.github.com/repos/opengm/opengm/issues/comments/174612762","html_url":"https://github.com/opengm/opengm/issues/417#issuecomment-174612762","issue_url":"https://api.github.com/repos/opengm/opengm/issues/417","id":174612762,"user":{"login":"joergkappes","id":2162091,"avatar_url":"https://avatars.githubusercontent.com/u/2162091?v=3","gravatar_id":"","url":"https://api.github.com/users/joergkappes","html_url":"https://github.com/joergkappes","followers_url":"https://api.github.com/users/joergkappes/followers","following_url":"https://api.github.com/users/joergkappes/following{/other_user}","gists_url":"https://api.github.com/users/joergkappes/gists{/gist_id}","starred_url":"https://api.github.com/users/joergkappes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joergkappes/subscriptions","organizations_url":"https://api.github.com/users/joergkappes/orgs","repos_url":"https://api.github.com/users/joergkappes/repos","events_url":"https://api.github.com/users/joergkappes/events{/privacy}","received_events_url":"https://api.github.com/users/joergkappes/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T18:32:11Z","updated_at":"2016-01-25T18:32:11Z","body":"fixed. Thanks for pointing this out."}}