Skip to content

Commit 55ad344

Browse files
authored
Ensure <string> is included in components using std::string (#1193)
1 parent 7918494 commit 55ad344

File tree

16 files changed

+22
-0
lines changed

16 files changed

+22
-0
lines changed

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/core.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <memory>
1818
#include <stdexcept>
19+
#include <string>
1920
#include <type_traits>
2021

2122
#include <bsoncxx/builder/core-fwd.hpp>

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/types.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <chrono>
1818
#include <cstring>
19+
#include <string>
1920

2021
#include <bsoncxx/types-fwd.hpp>
2122

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/types/bson_value/value.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <iostream>
1818
#include <memory>
19+
#include <string>
1920
#include <vector>
2021

2122
#include <bsoncxx/document/element-fwd.hpp>

src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/document/element.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
#include <cstdlib>
16+
#include <string>
1617

1718
#include <bsoncxx/document/element.hpp>
1819
#include <bsoncxx/exception/error_code.hpp>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#pragma once
1616

1717
#include <memory>
18+
#include <string>
1819

1920
#include <mongocxx/client-fwd.hpp>
2021
#include <mongocxx/client_session-fwd.hpp>

src/mongocxx/include/mongocxx/v_noabi/mongocxx/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 <mongocxx/client_encryption-fwd.hpp>
1820
#include <mongocxx/collection-fwd.hpp>
1921
#include <mongocxx/database-fwd.hpp>

src/mongocxx/include/mongocxx/v_noabi/mongocxx/events/heartbeat_failed_event.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#pragma once
1616

1717
#include <cstdint>
18+
#include <string>
1819

1920
#include <mongocxx/events/heartbeat_failed_event-fwd.hpp>
2021

src/mongocxx/include/mongocxx/v_noabi/mongocxx/exception/operation_exception.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 <mongocxx/exception/operation_exception-fwd.hpp>
1820

1921
#include <bsoncxx/document/value.hpp>

src/mongocxx/include/mongocxx/v_noabi/mongocxx/hint.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 <mongocxx/hint-fwd.hpp>
1820

1921
#include <bsoncxx/document/value.hpp>

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/encrypt.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 <mongocxx/client_encryption-fwd.hpp>
1820
#include <mongocxx/options/encrypt-fwd.hpp>
1921

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/index_view.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#pragma once
1616

1717
#include <chrono>
18+
#include <string>
1819

1920
#include <mongocxx/options/index_view-fwd.hpp>
2021

src/mongocxx/include/mongocxx/v_noabi/mongocxx/write_concern.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <cstdint>
1919
#include <memory>
2020
#include <stdexcept>
21+
#include <string>
2122

2223
#include <mongocxx/bulk_write-fwd.hpp>
2324
#include <mongocxx/client-fwd.hpp>

src/mongocxx/lib/mongocxx/v_noabi/mongocxx/options/change_stream.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
1517
#include <bsoncxx/builder/basic/document.hpp>
1618
#include <bsoncxx/builder/basic/kvp.hpp>
1719
#include <bsoncxx/builder/core.hpp>

src/mongocxx/lib/mongocxx/v_noabi/mongocxx/private/index_view.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <mongocxx/exception/logic_error.hpp>
2626
#include <mongocxx/exception/operation_exception.hpp>
2727
#include <mongocxx/exception/write_exception.hpp>
28+
#include <mongocxx/index_view.hpp>
2829
#include <mongocxx/options/index_view.hpp>
2930
#include <mongocxx/private/client_session.hh>
3031
#include <mongocxx/private/libbson.hh>

src/mongocxx/lib/mongocxx/v_noabi/mongocxx/private/search_index_view.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <mongocxx/private/client_session.hh>
1111
#include <mongocxx/private/libbson.hh>
1212
#include <mongocxx/private/libmongoc.hh>
13+
#include <mongocxx/search_index_view.hpp>
1314

1415
#include <mongocxx/config/private/prelude.hh>
1516

src/mongocxx/lib/mongocxx/v_noabi/mongocxx/validation_criteria.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <string>
16+
1517
#include <bsoncxx/builder/basic/document.hpp>
1618
#include <mongocxx/validation_criteria.hpp>
1719

0 commit comments

Comments
 (0)