Skip to content

Commit ed86f1e

Browse files
committed
CXX-1116 Provide definition of result::insert_many::result()
This method was declared as part of the API for this class, but no definition was ever provided.
1 parent 8d08365 commit ed86f1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/mongocxx/result/insert_many.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ insert_many::insert_many(result::bulk_write result, insert_many::id_map inserted
2424
: _result(std::move(result)), _generated_ids(std::move(inserted_ids)) {
2525
}
2626

27-
insert_many::id_map insert_many::inserted_ids() {
28-
return _generated_ids;
27+
const result::bulk_write& insert_many::result() const {
28+
return _result;
2929
}
3030

3131
std::int32_t insert_many::inserted_count() const {
3232
return _result.inserted_count();
3333
}
3434

35+
insert_many::id_map insert_many::inserted_ids() {
36+
return _generated_ids;
37+
}
38+
3539
} // namespace result
3640
MONGOCXX_INLINE_NAMESPACE_END
3741
} // namespace mongocxx

0 commit comments

Comments
 (0)