{"action":"created","issue":{"url":"https://api.github.com/repos/nlohmann/json/issues/94","labels_url":"https://api.github.com/repos/nlohmann/json/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/nlohmann/json/issues/94/comments","events_url":"https://api.github.com/repos/nlohmann/json/issues/94/events","html_url":"https://github.com/nlohmann/json/issues/94","id":89510028,"number":94,"title":"static analysis warnings","user":{"login":"mlund","id":3248398,"avatar_url":"https://avatars.githubusercontent.com/u/3248398?v=3","gravatar_id":"","url":"https://api.github.com/users/mlund","html_url":"https://github.com/mlund","followers_url":"https://api.github.com/users/mlund/followers","following_url":"https://api.github.com/users/mlund/following{/other_user}","gists_url":"https://api.github.com/users/mlund/gists{/gist_id}","starred_url":"https://api.github.com/users/mlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlund/subscriptions","organizations_url":"https://api.github.com/users/mlund/orgs","repos_url":"https://api.github.com/users/mlund/repos","events_url":"https://api.github.com/users/mlund/events{/privacy}","received_events_url":"https://api.github.com/users/mlund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nlohmann/json/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T08:53:38Z","updated_at":"2015-06-20T12:49:38Z","closed_at":null,"body":"Hi!\r\nI recently ran the static analyser tool `cppcheck` on some code using `nlohmann::json` and got the following warnings.\r\n\r\n````\r\nmikael@MBA11:~/Desktop$ cppcheck --enable=warning t.cpp\r\nChecking t.cpp...\r\n[json.hpp:480] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:508] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:519] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:522] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:528] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:534] -> [json.hpp:350] -> [json.hpp:350]: (warning) Call of pure virtual function 'basic_json' in constructor.\r\n[json.hpp:758]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:821]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1491]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1522]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1552]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1570]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1611]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1642]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1673]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:1706]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2075]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2129]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2222]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2409]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2451]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2483]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2925]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2948]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:2992]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:3024]: (error) Exception thrown in function declared not to throw exceptions.\r\n[json.hpp:3615]: (error) Exception thrown in function declared not to throw exceptions.\r\n````"},"comment":{"url":"https://api.github.com/repos/nlohmann/json/issues/comments/113759890","html_url":"https://github.com/nlohmann/json/issues/94#issuecomment-113759890","issue_url":"https://api.github.com/repos/nlohmann/json/issues/94","id":113759890,"user":{"login":"nlohmann","id":159488,"avatar_url":"https://avatars.githubusercontent.com/u/159488?v=3","gravatar_id":"","url":"https://api.github.com/users/nlohmann","html_url":"https://github.com/nlohmann","followers_url":"https://api.github.com/users/nlohmann/followers","following_url":"https://api.github.com/users/nlohmann/following{/other_user}","gists_url":"https://api.github.com/users/nlohmann/gists{/gist_id}","starred_url":"https://api.github.com/users/nlohmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlohmann/subscriptions","organizations_url":"https://api.github.com/users/nlohmann/orgs","repos_url":"https://api.github.com/users/nlohmann/repos","events_url":"https://api.github.com/users/nlohmann/events{/privacy}","received_events_url":"https://api.github.com/users/nlohmann/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T12:49:38Z","updated_at":"2015-06-20T12:49:38Z","body":"Indeed... Thanks. :-)"}}