1

司机和我有一些关于使用司机的问题。问题是我应该在我的项目中使用哪些头文件来使用这个驱动程序?我见过这种包含文件

#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/stdx.hpp>
#include <mongocxx/uri.hpp>

和这种包含文件

#include <bsoncxx/builder/stream/document.cpp>
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>

我对应该包含哪些头文件感到困惑。

感谢您的任何回答。

4

1 回答 1

1

mongocxx-driver 有很多特性,你可能不会使用所有这些特性,包括你正在使用的特性所需的标题。

文档目前似乎已损坏,但它告诉您每个类要包含哪些标题。

于 2018-11-01T07:59:17.337 回答