{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/42268158","id":42268158,"diff_hunk":"@@ -54,6 +54,15 @@ class bulk_write;\n class MONGOCXX_API write_concern {\n \n    public:\n+    ///\n+    /// A class to represent the special case values for write_concern::nodes.\n+    /// @see http://docs.mongodb.org/manual/reference/write-concern/#w-option\n+    ///\n+    enum w : std::int32_t {","path":"src/mongocxx/write_concern.hpp","position":8,"original_position":8,"commit_id":"99e8026e8f253f06e3397ce9058004c27c3b0ca3","original_commit_id":"99e8026e8f253f06e3397ce9058004c27c3b0ca3","user":{"login":"Machyne","id":2737181,"avatar_url":"https://avatars.githubusercontent.com/u/2737181?v=3","gravatar_id":"","url":"https://api.github.com/users/Machyne","html_url":"https://github.com/Machyne","followers_url":"https://api.github.com/users/Machyne/followers","following_url":"https://api.github.com/users/Machyne/following{/other_user}","gists_url":"https://api.github.com/users/Machyne/gists{/gist_id}","starred_url":"https://api.github.com/users/Machyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machyne/subscriptions","organizations_url":"https://api.github.com/users/Machyne/orgs","repos_url":"https://api.github.com/users/Machyne/repos","events_url":"https://api.github.com/users/Machyne/events{/privacy}","received_events_url":"https://api.github.com/users/Machyne/received_events","type":"User","site_admin":false},"body":"I didn't do this initially because then to compare `write_concern::w` to the return of `write_concern::nodes()` requires a cast. Is that okay?","created_at":"2015-10-16T17:32:59Z","updated_at":"2015-10-16T17:32:59Z","html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/331#discussion_r42268158","pull_request_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/42268158"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/331#discussion_r42268158"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331","id":47937039,"html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/331","diff_url":"https://github.com/mongodb/mongo-cxx-driver/pull/331.diff","patch_url":"https://github.com/mongodb/mongo-cxx-driver/pull/331.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/331","number":331,"state":"open","locked":false,"title":"CXX-704: add enum for special write concern w values","user":{"login":"Machyne","id":2737181,"avatar_url":"https://avatars.githubusercontent.com/u/2737181?v=3","gravatar_id":"","url":"https://api.github.com/users/Machyne","html_url":"https://github.com/Machyne","followers_url":"https://api.github.com/users/Machyne/followers","following_url":"https://api.github.com/users/Machyne/following{/other_user}","gists_url":"https://api.github.com/users/Machyne/gists{/gist_id}","starred_url":"https://api.github.com/users/Machyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machyne/subscriptions","organizations_url":"https://api.github.com/users/Machyne/orgs","repos_url":"https://api.github.com/users/Machyne/repos","events_url":"https://api.github.com/users/Machyne/events{/privacy}","received_events_url":"https://api.github.com/users/Machyne/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-16T17:22:10Z","updated_at":"2015-10-16T17:32:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"153033c47513aed197e295e40b4f7dd7db6fc202","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/331/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/99e8026e8f253f06e3397ce9058004c27c3b0ca3","head":{"label":"Machyne:CXX-704","ref":"CXX-704","sha":"99e8026e8f253f06e3397ce9058004c27c3b0ca3","user":{"login":"Machyne","id":2737181,"avatar_url":"https://avatars.githubusercontent.com/u/2737181?v=3","gravatar_id":"","url":"https://api.github.com/users/Machyne","html_url":"https://github.com/Machyne","followers_url":"https://api.github.com/users/Machyne/followers","following_url":"https://api.github.com/users/Machyne/following{/other_user}","gists_url":"https://api.github.com/users/Machyne/gists{/gist_id}","starred_url":"https://api.github.com/users/Machyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machyne/subscriptions","organizations_url":"https://api.github.com/users/Machyne/orgs","repos_url":"https://api.github.com/users/Machyne/repos","events_url":"https://api.github.com/users/Machyne/events{/privacy}","received_events_url":"https://api.github.com/users/Machyne/received_events","type":"User","site_admin":false},"repo":{"id":44116438,"name":"mongo-cxx-driver","full_name":"Machyne/mongo-cxx-driver","owner":{"login":"Machyne","id":2737181,"avatar_url":"https://avatars.githubusercontent.com/u/2737181?v=3","gravatar_id":"","url":"https://api.github.com/users/Machyne","html_url":"https://github.com/Machyne","followers_url":"https://api.github.com/users/Machyne/followers","following_url":"https://api.github.com/users/Machyne/following{/other_user}","gists_url":"https://api.github.com/users/Machyne/gists{/gist_id}","starred_url":"https://api.github.com/users/Machyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machyne/subscriptions","organizations_url":"https://api.github.com/users/Machyne/orgs","repos_url":"https://api.github.com/users/Machyne/repos","events_url":"https://api.github.com/users/Machyne/events{/privacy}","received_events_url":"https://api.github.com/users/Machyne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Machyne/mongo-cxx-driver","description":"C++ Driver for MongoDB","fork":true,"url":"https://api.github.com/repos/Machyne/mongo-cxx-driver","forks_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/forks","keys_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/teams","hooks_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/hooks","issue_events_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/issues/events{/number}","events_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/events","assignees_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/assignees{/user}","branches_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/branches{/branch}","tags_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/tags","blobs_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/languages","stargazers_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/stargazers","contributors_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/contributors","subscribers_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/subscribers","subscription_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/subscription","commits_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/contents/{+path}","compare_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/merges","archive_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/downloads","issues_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/issues{/number}","pulls_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/labels{/name}","releases_url":"https://api.github.com/repos/Machyne/mongo-cxx-driver/releases{/id}","created_at":"2015-10-12T15:29:36Z","updated_at":"2015-10-12T15:29:38Z","pushed_at":"2015-10-16T17:30:46Z","git_url":"git://github.com/Machyne/mongo-cxx-driver.git","ssh_url":"git@github.com:Machyne/mongo-cxx-driver.git","clone_url":"https://github.com/Machyne/mongo-cxx-driver.git","svn_url":"https://github.com/Machyne/mongo-cxx-driver","homepage":null,"size":5433,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"legacy"}},"base":{"label":"mongodb:master","ref":"master","sha":"6559a0fd843ac4eea8dde4884e6b1d8f77e9470d","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":15881868,"name":"mongo-cxx-driver","full_name":"mongodb/mongo-cxx-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-cxx-driver","description":"C++ Driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/releases{/id}","created_at":"2014-01-13T21:08:36Z","updated_at":"2015-10-10T00:25:46Z","pushed_at":"2015-10-16T17:30:46Z","git_url":"git://github.com/mongodb/mongo-cxx-driver.git","ssh_url":"git@github.com:mongodb/mongo-cxx-driver.git","clone_url":"https://github.com/mongodb/mongo-cxx-driver.git","svn_url":"https://github.com/mongodb/mongo-cxx-driver","homepage":null,"size":11014,"stargazers_count":194,"watchers_count":194,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":175,"mirror_url":null,"open_issues_count":10,"forks":175,"open_issues":10,"watchers":194,"default_branch":"legacy"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/331"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/331"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/331/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/331/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/99e8026e8f253f06e3397ce9058004c27c3b0ca3"}}}}