microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.84k stars 6.3k forks source link

[mongo-cxx-driver] Add C++17 polyfill option for std #13607

Open morphogencc opened 4 years ago

morphogencc commented 4 years ago

The current options for polyfill are:

PS C:\Users\Me\Documents\vcpkg> .\vcpkg.exe search mongo-cxx-driver                                                                                                                                                                                                                                                      mongo-cxx-driver     3.4.0-5          MongoDB C++ Driver.
mongo-cxx-driver[boost]               Use Boost C++17 polyfill. The only option under MSVC.
mongo-cxx-driver[mnmlstc]             Use MNMLSTC/core C++17 polyfill.
mongo-cxx-driver[std-experimental]    Use optional and string_view from std::experimental.
mongo-cxx-driver[system-mnmlstc]      Use an available version of MNMLSTC on your system as C++17 polyfill.

If I don't specify an option it defaults to using boost; however, if I build it myself from source, I have the option of using std:: without any additional libraries. I would like to see this replicated with vcpkg.

thanks!

prateek9623 commented 3 years ago

@NancyLi1013 @PhoebeHui any update on this?