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

PR: Use a regular string not a raw string for MSVC2015

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.2
    • Component/s: Portability
    • Labels:
      None

      Description

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

      Visual Studio finds a bunch of syntax errors on this line with the raw string, so it fails to compile mongo_cxx's test suite. It seems to start failing at "id1"; I'm guessing that it thinks the string ends at that point, maybe because of the escaped quote or because of the macro expansion or some combination of the above. (There are several other raw strings in the file; they are all simpler strings, but they all compile fine.)

      This fixes the test-build on Visual Studio by rewriting this string as a regular (non-raw) string.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: