Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-836

Missing #include <string> in mongo-cxx-driver

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.1
    • Affects Version/s: 3.0.0
    • Component/s: Implementation
    • None

      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

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            messa Petr Messner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: