[CXX-836] Missing #include <string> in mongo-cxx-driver Created: 02/Feb/16  Updated: 30/Mar/16  Resolved: 19/Feb/16

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: 3.0.0
Fix Version/s: 3.0.1

Type: Bug Priority: Major - P3
Reporter: Petr Messner Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-838 Does not compile on apple-clang-7 Closed
Related

 Description   

I'm trying to compile mongo-cxx-driver on OS X (AppleClang). I've got errors like this:

error: implicit instantiation of undefined template 'std::__1::basic_string<char,

Full output is here: https://gist.github.com/messa/00892e97f0a22b99f2a2

I've fixed it by adding #include <string> to a few files, see here:

https://github.com/messa/mongo-cxx-driver/commit/9d526e76952415e0b8936513b1cc8c2a326348c9

Now it compiles successfully. Please consider to add these #includes to upstream



 Comments   
Comment by Githook User [ 19/Feb/16 ]

Author:

{u'username': u'yongjincho', u'name': u'Yongjin Cho', u'email': u'yongjin.cho@gmail.com'}

Message: CXX-836 minor: fixup clang compile
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/07d4243445b5f0f333bf0ee9b3f482e74adf67a4

Comment by Andrew Morrow (Inactive) [ 18/Feb/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/458

Comment by Mira Carey [ 02/Feb/16 ]

Petr,

Thanks for trying out the C++11 driver, and sorry for that bug. We'll make sure to get that in for our next bugfix release.

Would you mind opening a pull request on github and signing our Contributor Agreement? That's our usual workflow for receiving contributions.

Thanks,
Jason

Generated at Wed Feb 07 22:00:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.