Skip to content

Commit 5b46281

Browse files
orivejkevinAlbs
authored andcommitted
Fix build with libcxx
Fixes error "implicit instantiation of undefined template 'std::string'" requested in mongocxx/options/auto_encryption.hpp:256:29: stdx::optional<ns_pair> _key_vault_namespace; and likewise in client_encryption.hpp.
1 parent 30c6af6 commit 5b46281

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/mongocxx/options/auto_encryption.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#pragma once
1616

17+
#include <string>
18+
1719
#include <bsoncxx/document/view_or_value.hpp>
1820
#include <bsoncxx/stdx/optional.hpp>
1921
#include <mongocxx/stdx.hpp>

src/mongocxx/options/client_encryption.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#pragma once
1616

17+
#include <string>
18+
1719
#include <bsoncxx/document/view_or_value.hpp>
1820
#include <bsoncxx/stdx/optional.hpp>
1921
#include <mongocxx/stdx.hpp>

0 commit comments

Comments
 (0)