{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/45390041","id":45390041,"diff_hunk":"@@ -0,0 +1,41 @@\n+// Copyright 2014 MongoDB Inc.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+// http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+#pragma once\n+\n+#include <bsoncxx/config/prelude.hpp>\n+\n+#include <bson.h>\n+\n+#include <bsoncxx/document/value.hpp>\n+#include <bsoncxx/document/view.hpp>\n+\n+namespace bsoncxx {\n+BSONCXX_INLINE_NAMESPACE_BEGIN\n+\n+namespace helpers {\n+\n+BSONCXX_INLINE document::view view_from_bson_t(const bson_t* bson) {","path":"src/bsoncxx/private/helpers.hpp","position":29,"original_position":29,"commit_id":"607180eeb0deaddc4052f1864e3a2992d085c97a","original_commit_id":"607180eeb0deaddc4052f1864e3a2992d085c97a","user":{"login":"acmorrow","id":268253,"avatar_url":"https://avatars.githubusercontent.com/u/268253?v=3","gravatar_id":"","url":"https://api.github.com/users/acmorrow","html_url":"https://github.com/acmorrow","followers_url":"https://api.github.com/users/acmorrow/followers","following_url":"https://api.github.com/users/acmorrow/following{/other_user}","gists_url":"https://api.github.com/users/acmorrow/gists{/gist_id}","starred_url":"https://api.github.com/users/acmorrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmorrow/subscriptions","organizations_url":"https://api.github.com/users/acmorrow/orgs","repos_url":"https://api.github.com/users/acmorrow/repos","events_url":"https://api.github.com/users/acmorrow/events{/privacy}","received_events_url":"https://api.github.com/users/acmorrow/received_events","type":"User","site_admin":false},"body":"You don't need BSONCXX_INLINE on private inline functions.","created_at":"2015-11-19T19:43:05Z","updated_at":"2015-11-19T19:43:05Z","html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/373#discussion_r45390041","pull_request_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/comments/45390041"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/373#discussion_r45390041"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373","id":50585728,"html_url":"https://github.com/mongodb/mongo-cxx-driver/pull/373","diff_url":"https://github.com/mongodb/mongo-cxx-driver/pull/373.diff","patch_url":"https://github.com/mongodb/mongo-cxx-driver/pull/373.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/373","number":373,"state":"open","locked":false,"title":"CXX-690 Add new options to FAM","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":"This add write concern and bypass document validation to the find and modify helpers.","created_at":"2015-11-12T23:46:55Z","updated_at":"2015-11-19T19:43:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efa94adc345963792571e47ba9d01ee8b394e031","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373/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/373/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/607180eeb0deaddc4052f1864e3a2992d085c97a","head":{"label":"Machyne:CXX-693","ref":"CXX-693","sha":"607180eeb0deaddc4052f1864e3a2992d085c97a","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-11-19T17:15:14Z","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":5567,"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":"1f5803b2527254b7cec771fda065e3821bf771d3","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-11-18T03:22:26Z","pushed_at":"2015-11-19T17:15:14Z","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":6634,"stargazers_count":205,"watchers_count":205,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":185,"mirror_url":null,"open_issues_count":14,"forks":185,"open_issues":14,"watchers":205,"default_branch":"legacy"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373"},"html":{"href":"https://github.com/mongodb/mongo-cxx-driver/pull/373"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/373"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/issues/373/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/pulls/373/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/373/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-cxx-driver/statuses/607180eeb0deaddc4052f1864e3a2992d085c97a"}}}}