We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9143bb commit 7a7f325Copy full SHA for 7a7f325
examples/mongocxx/instance_management.cpp
@@ -78,9 +78,11 @@ void configure(mongocxx::uri uri) {
78
}
79
};
80
81
- mongo_access::instance().configure(
82
- mongocxx::stdx::make_unique<mongocxx::instance>(mongocxx::stdx::make_unique<noop_logger>()),
83
- mongocxx::stdx::make_unique<mongocxx::pool>(std::move(uri)));
+ auto instance =
+ mongocxx::stdx::make_unique<mongocxx::instance>(mongocxx::stdx::make_unique<noop_logger>());
+
84
+ mongo_access::instance().configure(std::move(instance),
85
+ mongocxx::stdx::make_unique<mongocxx::pool>(std::move(uri)));
86
87
88
bool do_work() {
0 commit comments