[CXX-609] Add a flag for building in C++14 mode Created: 07/Jun/15  Updated: 10/Sep/16  Resolved: 10/Sep/16

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

Type: Bug Priority: Major - P3
Reporter: Neslisah Torosdagli Assignee: David Golden
Resolution: Won't Fix Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Projects which are built with C++14 mode cannot use MongoDB. Although project using MongoDB can be built and linked with C++14 mode, it crashes at mongo::client::initialize() call.



 Comments   
Comment by David Golden [ 10/Sep/16 ]

I'm going through old tickets. Given the workaround, and given the shift of resources to the C++11 driver, I'm going to close this ticket.

Comment by Andrew Morrow (Inactive) [ 07/Jun/15 ]

Hi neslimsah -

Thanks for filing this ticket, per our discussion on mongodb-user.

I think though that there are two separate issues: the crash you are experiencing, and adding support for C++14 builds to the legacy driver. Lets keep this ticket for adding support for building in C++14 mode.

While we don't have a flag for C++14 mode like we do for C++11 mode (--c++11), you can actually get a C++14 build of the legacy driver by setting the CXXFLAGS Variable appropriately on your build line:

scons CXXFLAGS=-std=c++14 install

or

scons CXXFLAGS=-std=c++1y install

If your compiler doesn't yet offer the official 14 flag.

Generated at Wed Feb 07 21:59:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.