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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.1
    • 3.0.0
    • Implementation
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: