-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.1.3
-
Component/s: None
-
None
-
Environment:Windows 10 / mingw64 7.2
-
Fully Compatible
cmake command
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\lib\mongo-cxx-driver -DLIBBSON_DIR=c:\lib\mongo-c-driver -DLIBMONGOC_DIR=c:\lib\mongo-c-driver -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1 -DCMAKE_CXX_STANDARD=17
File changes to be able to compile
File src\bsoncxx\util\functor.hpp
Add #include <functional>
File src\mongocxx\private\libbson.hh
Remove l.61 : explicit scoped_bson_t(bsoncxx::document::view_or_value doc);
Remove l.75 : void init_from_static(bsoncxx::document::view_or_value doc);
Remove respective impl in libbson.cpp
File src\third_party\catch\include\catch.hpp
Comment l.823, not sure how it should be fixed, error is : error: ISO C++ forbids comparison between pointer and integer [-fpermissive]