{"action":"created","issue":{"url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/200","labels_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/200/comments","events_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/200/events","html_url":"https://github.com/open-source-parsers/jsoncpp/issues/200","id":59960805,"number":200,"title":"Build error: missing include <algorithm>","user":{"login":"rickyviking","id":2272034,"avatar_url":"https://avatars.githubusercontent.com/u/2272034?v=3","gravatar_id":"","url":"https://api.github.com/users/rickyviking","html_url":"https://github.com/rickyviking","followers_url":"https://api.github.com/users/rickyviking/followers","following_url":"https://api.github.com/users/rickyviking/following{/other_user}","gists_url":"https://api.github.com/users/rickyviking/gists{/gist_id}","starred_url":"https://api.github.com/users/rickyviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickyviking/subscriptions","organizations_url":"https://api.github.com/users/rickyviking/orgs","repos_url":"https://api.github.com/users/rickyviking/repos","events_url":"https://api.github.com/users/rickyviking/events{/privacy}","received_events_url":"https://api.github.com/users/rickyviking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/open-source-parsers/jsoncpp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"cdunn2001","id":450656,"avatar_url":"https://avatars.githubusercontent.com/u/450656?v=3","gravatar_id":"","url":"https://api.github.com/users/cdunn2001","html_url":"https://github.com/cdunn2001","followers_url":"https://api.github.com/users/cdunn2001/followers","following_url":"https://api.github.com/users/cdunn2001/following{/other_user}","gists_url":"https://api.github.com/users/cdunn2001/gists{/gist_id}","starred_url":"https://api.github.com/users/cdunn2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdunn2001/subscriptions","organizations_url":"https://api.github.com/users/cdunn2001/orgs","repos_url":"https://api.github.com/users/cdunn2001/repos","events_url":"https://api.github.com/users/cdunn2001/events{/privacy}","received_events_url":"https://api.github.com/users/cdunn2001/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-03-05T14:44:13Z","updated_at":"2015-03-05T20:44:35Z","closed_at":null,"body":"Hi there,\r\n\r\nI've just downloaded version 1.5.1 and it doesn't build on VisualStudio 2013 with he following error:\r\n> jsoncpp-1.5.1\\src\\lib_json\\json_value.cpp(237): error C2039: 'min' : is not a member of 'std'\r\n>jsoncpp-1.5.1\\src\\lib_json\\json_value.cpp(237): error C3861: 'min': identifier not found\r\n\r\n\\#include \\<algorithm\\> fixes the issue.\r\n\r\nVS2013 also reports some warning due to type casting, I just report some of them as a reference, in case you're not using this compiler:\r\n> jsoncpp-1.5.1\\src\\lib_json\\json_value.cpp(328): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data\r\n> jsoncpp-1.5.1\\src\\lib_json\\json_value.cpp(940): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data\r\n> jsoncpp-1.5.1\\src\\lib_json\\json_value.cpp(960): warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data"},"comment":{"url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/comments/77447792","html_url":"https://github.com/open-source-parsers/jsoncpp/issues/200#issuecomment-77447792","issue_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/200","id":77447792,"user":{"login":"cdunn2001","id":450656,"avatar_url":"https://avatars.githubusercontent.com/u/450656?v=3","gravatar_id":"","url":"https://api.github.com/users/cdunn2001","html_url":"https://github.com/cdunn2001","followers_url":"https://api.github.com/users/cdunn2001/followers","following_url":"https://api.github.com/users/cdunn2001/following{/other_user}","gists_url":"https://api.github.com/users/cdunn2001/gists{/gist_id}","starred_url":"https://api.github.com/users/cdunn2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdunn2001/subscriptions","organizations_url":"https://api.github.com/users/cdunn2001/orgs","repos_url":"https://api.github.com/users/cdunn2001/repos","events_url":"https://api.github.com/users/cdunn2001/events{/privacy}","received_events_url":"https://api.github.com/users/cdunn2001/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T20:44:35Z","updated_at":"2015-03-05T20:44:35Z","body":"```\r\ncmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_STATIC=OFF -DJSONCPP_LIB_BUILD_SHARED=ON -G \"Visual Studio 10\" ../..\r\n```\r\nWe see your problem now. A friend can repro. And we have a fix. Just checking some other things first..."}}