名前空間 "bsoncxx :: v_noabi :: builder :: basic"にメンバー "make_document"がないというエラーが表示されています。Mongodb C++ドライバの問題
私はmongo-cxx-driver-r3.1.1バージョンを使用しています。ここ i have followed example from here
は、私はすでにコンパイルし、その完璧に働いた後、MongoDBのドライバをテストしている
#include "maxi.h"
#include <cstdlib>
#include <iostream>
#include <bsoncxx/builder/basic/array.hpp>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
using bsoncxx::builder::basic::kvp;
using bsoncxx::builder::basic::make_document;// here is error
using bsoncxx::type;
mongocxx::instance inst{};
mongocxx::client conn{ mongocxx::uri{ "mongodb://localhost:27017" } };
を試してきたものです。私は目標を達成するために何らかの理由でmake_documentオプションを使用する必要があります。 可能性がありませんbsoncxx :: builder :: basic :: make_document;オプションが削除されたか、わからない他のものに置き換えられている可能性があります。