[CXX-709] Legacy C++ Driver Tests do not compile with VS 2015 Created: 16/Oct/15  Updated: 19/Oct/15  Resolved: 19/Oct/15

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: legacy-1.0.6

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Error Message

src\mongo\bson\util\builder_test.cpp(38): warning C4312: 'reinterpret_cast': conversion from 'unsigned int' to 'const void *' of greater size

Code in question

 TEST(Builder, StringBuilderAddress) {
     const void* shortPtr = reinterpret_cast<const void*>(0xDEADBEEF);



 Comments   
Comment by Mark Benvenuto [ 19/Oct/15 ]

Pull Request: https://github.com/mongodb/mongo-cxx-driver/pull/333

Comment by Githook User [ 19/Oct/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: CXX-709: Fix reinterpret_cast for VS 2015
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/94190741d33ced7db4cb7e2de60243ab7b2d7a57

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