[CXX-1010] PR: Use a regular string not a raw string for MSVC2015 Created: 29/Aug/16  Updated: 19/Sep/16  Resolved: 08/Sep/16

Status: Closed
Project: C++ Driver
Component/s: Portability
Affects Version/s: None
Fix Version/s: 3.0.2

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: David Golden
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Githook User [ 01/Sep/16 ]

Author:

{u'name': u'Adam Seering', u'email': u'aseering@nutonian.com'}

Message: CXX-1010 Use a regular string not a raw string

This commit use a regular string with escapes rather than a raw string in a
scenario where Visual C++ has trouble parsing the raw string correctly.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1d761cdb06058e0502e0cf002dd8159ef54c4d44

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