{"action":"created","issue":{"url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/3205","repository_url":"https://api.github.com/repos/ElektraInitiative/libelektra","labels_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/3205/labels{/name}","comments_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/3205/comments","events_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/3205/events","html_url":"https://github.com/ElektraInitiative/libelektra/issues/3205","id":521815964,"node_id":"MDU6SXNzdWU1MjE4MTU5NjQ=","number":3205,"title":"keyMeta in C++","user":{"login":"kodebach","id":23529132,"node_id":"MDQ6VXNlcjIzNTI5MTMy","avatar_url":"https://avatars1.githubusercontent.com/u/23529132?v=4","gravatar_id":"","url":"https://api.github.com/users/kodebach","html_url":"https://github.com/kodebach","followers_url":"https://api.github.com/users/kodebach/followers","following_url":"https://api.github.com/users/kodebach/following{/other_user}","gists_url":"https://api.github.com/users/kodebach/gists{/gist_id}","starred_url":"https://api.github.com/users/kodebach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodebach/subscriptions","organizations_url":"https://api.github.com/users/kodebach/orgs","repos_url":"https://api.github.com/users/kodebach/repos","events_url":"https://api.github.com/users/kodebach/events{/privacy}","received_events_url":"https://api.github.com/users/kodebach/received_events","type":"User","site_admin":false},"labels":[{"id":1283657274,"node_id":"MDU6TGFiZWwxMjgzNjU3Mjc0","url":"https://api.github.com/repos/ElektraInitiative/libelektra/labels/lang/cpp","name":"lang/cpp","color":"b60205","default":false},{"id":108538584,"node_id":"MDU6TGFiZWwxMDg1Mzg1ODQ=","url":"https://api.github.com/repos/ElektraInitiative/libelektra/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-11-12T21:33:56Z","updated_at":"2019-11-13T08:42:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Since #2983 is now implemented and we have `KeySet * keyMeta (Key * key);` it would be nice to have a similar function in C++. I propose an overload for `Key::getMeta`:\r\n```cpp\r\ninline kdb::KeySet kdb::Key::getMeta () const\r\n{\r\n    return kdb::KeySet (ckdb::keyMeta (this->key));\r\n}\r\n```\r\n\r\nHowever, I don't know where to put this function the whole binding uses `inline` functions (which is good) and therefore is header-only. But I can't put the function into `key.hpp` because that file doesn't know about `kdb::KeySet`. If I put the function somewhere else, just using `#include <key.hpp>` won't work anymore. Anybody with more C++ knowledge got any ideas?"},"comment":{"url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/comments/553298565","html_url":"https://github.com/ElektraInitiative/libelektra/issues/3205#issuecomment-553298565","issue_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/3205","id":553298565,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MzI5ODU2NQ==","user":{"login":"manuelm","id":357694,"node_id":"MDQ6VXNlcjM1NzY5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/357694?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelm","html_url":"https://github.com/manuelm","followers_url":"https://api.github.com/users/manuelm/followers","following_url":"https://api.github.com/users/manuelm/following{/other_user}","gists_url":"https://api.github.com/users/manuelm/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelm/subscriptions","organizations_url":"https://api.github.com/users/manuelm/orgs","repos_url":"https://api.github.com/users/manuelm/repos","events_url":"https://api.github.com/users/manuelm/events{/privacy}","received_events_url":"https://api.github.com/users/manuelm/received_events","type":"User","site_admin":false},"created_at":"2019-11-13T08:42:46Z","updated_at":"2019-11-13T08:42:46Z","author_association":"CONTRIBUTOR","body":"SWIG can only wrap methods inside the class/struct block.\r\n\r\nNo. Just link them to ...-meta too.\r\n"}}
{"actor":{"display_login":"manuelm"}}