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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.2
    • Affects Version/s: None
    • Component/s: Portability
    • None

      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.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: