-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.1.0
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
NamespaceString::db() and NamespaceString::coll() can be called on a temporary NamespaceString, which will result in a StringData which points to invalid memory. One way to prevent this is by explicitly deleting the rvalue version of the function (see attached example.diff). The trouble is MSVC13 does not support reference functions. So we need to build a macro.