Skip to content

Commit 7253596

Browse files
authored
CXX-3160 Remove mongocxx::stdx (#1248)
1 parent 4bb7c80 commit 7253596

File tree

161 files changed

+1855
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+1855
-1622
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Changes prior to 3.9.0 are documented as [release notes on GitHub](https://githu
99

1010
## 4.0.0 [Unreleased]
1111

12-
<!-- Will contain entries for the next minor release. -->
12+
## Removed
13+
14+
- Redeclarations of `bsoncxx::stdx` interfaces in the `mongocxx::stdx` namespace.
15+
- Use `bsoncxx::stdx::optional<T>` instead of `mongocxx::stdx::optional<T>`.
16+
- Use `bsoncxx::stdx::string_view` instead of `mongocxx::stdx::string_view`.
1317

1418
## 3.11.0
1519

examples/mongocxx/tutorial.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include <mongocxx/client.hpp>
1414
#include <mongocxx/instance.hpp>
15-
#include <mongocxx/stdx.hpp>
1615
#include <mongocxx/uri.hpp>
1716

1817
#include <examples/macros.hh>

examples/mongocxx/view_or_value_variant.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <mongocxx/client.hpp>
2020
#include <mongocxx/instance.hpp>
21-
#include <mongocxx/stdx.hpp>
2221
#include <mongocxx/uri.hpp>
2322

2423
#include <examples/macros.hh>

src/mongocxx/include/mongocxx/doc.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@
7474
/// Declares entities representing the result of GridFS commands.
7575
///
7676

77-
///
78-
/// @namespace mongocxx::stdx
79-
/// Redeclares @ref bsoncxx C++17 standard library polyfills in the @ref mongocxx library namespace
80-
/// for internal use.
81-
///
82-
/// @deprecated Use @ref bsoncxx::stdx instead.
83-
///
84-
/// @warning These redeclarations are for internal use only! Users should reference entities
85-
/// declared in @ref bsoncxx directly, not through @ref mongocxx.
86-
///
87-
8877
///
8978
/// @page topic-mongocxx The mongocxx Library
9079
/// @brief Topics relating to the mongocxx library.

src/mongocxx/include/mongocxx/v_noabi/mongocxx/bulk_write.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class bulk_write {
100100
/// @see
101101
/// - https://www.mongodb.com/docs/manual/core/bulk-write-operations/
102102
///
103-
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<result::bulk_write>) execute() const;
103+
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::stdx::optional<result::bulk_write>) execute() const;
104104

105105
private:
106106
friend ::mongocxx::v_noabi::collection;

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <mongocxx/options/client_session.hpp>
3333
#include <mongocxx/read_concern.hpp>
3434
#include <mongocxx/read_preference.hpp>
35-
#include <mongocxx/stdx.hpp>
3635
#include <mongocxx/uri.hpp>
3736
#include <mongocxx/write_concern.hpp>
3837

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client_encryption.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <mongocxx/options/rewrap_many_datakey.hpp>
3131
#include <mongocxx/result/delete.hpp>
3232
#include <mongocxx/result/rewrap_many_datakey.hpp>
33-
#include <mongocxx/stdx.hpp>
3433

3534
#include <mongocxx/config/prelude.hpp>
3635

@@ -112,7 +111,8 @@ class client_encryption {
112111
const bsoncxx::v_noabi::document::view& options,
113112
bsoncxx::v_noabi::document::value& out_options,
114113
const std::string& kms_provider,
115-
const stdx::optional<bsoncxx::v_noabi::document::view>& masterkey = stdx::nullopt);
114+
const bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view>& masterkey =
115+
bsoncxx::v_noabi::stdx::nullopt);
116116

117117
///
118118
/// Encrypts a BSON value with a given key and algorithm.
@@ -217,7 +217,7 @@ class client_encryption {
217217
/// @see
218218
/// - https://www.mongodb.com/docs/manual/reference/method/KeyVault.getKey/
219219
///
220-
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<bsoncxx::v_noabi::document::value>)
220+
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::value>)
221221
get_key(bsoncxx::v_noabi::types::bson_value::view_or_value id);
222222

223223
///
@@ -247,7 +247,7 @@ class client_encryption {
247247
/// @see
248248
/// - https://www.mongodb.com/docs/manual/reference/method/KeyVault.addKeyAlternateName/
249249
///
250-
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<bsoncxx::v_noabi::document::value>)
250+
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::value>)
251251
add_key_alt_name(bsoncxx::v_noabi::types::bson_value::view_or_value id,
252252
bsoncxx::v_noabi::string::view_or_value key_alt_name);
253253

@@ -266,7 +266,7 @@ class client_encryption {
266266
/// @see
267267
/// - https://www.mongodb.com/docs/manual/reference/method/KeyVault.removeKeyAlternateName/
268268
///
269-
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<bsoncxx::v_noabi::document::value>)
269+
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::value>)
270270
remove_key_alt_name(bsoncxx::v_noabi::types::bson_value::view_or_value id,
271271
bsoncxx::v_noabi::string::view_or_value key_alt_name);
272272

@@ -282,7 +282,7 @@ class client_encryption {
282282
/// @see
283283
/// - https://www.mongodb.com/docs/manual/reference/method/KeyVault.getKeyByAltName/
284284
///
285-
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<bsoncxx::v_noabi::document::value>)
285+
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::value>)
286286
get_key_by_alt_name(bsoncxx::v_noabi::string::view_or_value key_alt_name);
287287

288288
private:

src/mongocxx/include/mongocxx/v_noabi/mongocxx/client_session.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ class client_session {
153153
/// a transaction already in progress.
154154
///
155155
MONGOCXX_ABI_EXPORT_CDECL(void)
156-
start_transaction(const stdx::optional<options::transaction>& transaction_opts = {});
156+
start_transaction(
157+
const bsoncxx::v_noabi::stdx::optional<options::transaction>& transaction_opts = {});
157158

158159
///
159160
/// Commits a transaction on the current client session.

0 commit comments

Comments
 (0)