Skip to content

Commit e7a5d1f

Browse files
authored
v1: find_one_and_update_options (CXX-3237, CXX-3238) (#1534)
1 parent 060fa29 commit e7a5d1f

File tree

8 files changed

+740
-164
lines changed

8 files changed

+740
-164
lines changed

src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class find_one_and_update_options {
183183
///
184184
/// Set the "returnDocument" field.
185185
///
186-
MONGOCXX_ABI_EXPORT_CDECL(find_one_and_update_options&) return_document(return_document return_document);
186+
MONGOCXX_ABI_EXPORT_CDECL(find_one_and_update_options&) return_document(v1::return_document return_document);
187187

188188
///
189189
/// Return the current "returnDocument" field.
@@ -229,6 +229,8 @@ class find_one_and_update_options {
229229
/// Return the current "arrayFilters" field.
230230
///
231231
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::array::view>) array_filters() const;
232+
233+
class internal;
232234
};
233235

234236
} // namespace v1

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/find_one_and_update-fwd.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#pragma once
1616

17+
#include <mongocxx/v1/find_one_and_update_options-fwd.hpp> // IWYU pragma: export
18+
1719
#include <mongocxx/config/prelude.hpp>
1820

1921
namespace mongocxx {
@@ -29,7 +31,7 @@ class find_one_and_update;
2931
namespace mongocxx {
3032
namespace options {
3133

32-
using ::mongocxx::v_noabi::options::find_one_and_update;
34+
using v_noabi::options::find_one_and_update;
3335

3436
} // namespace options
3537
} // namespace mongocxx
@@ -40,3 +42,6 @@ using ::mongocxx::v_noabi::options::find_one_and_update;
4042
/// @file
4143
/// Declares @ref mongocxx::v_noabi::options::find_one_and_update.
4244
///
45+
/// @par Includes
46+
/// - @ref mongocxx/v1/find_one_and_update_options-fwd.hpp
47+
///

0 commit comments

Comments
 (0)