vcpkg/ports/mongo-cxx-driver/fix-msvc-cxx17.patch
Kai Pastor e819a7d0ae
[mongo-cxx-driver] Update (#27565)
* Update and cleanup

* Fix C++14 guard for MSVC

* Force mongo-cxx-driver feature boost in CI
2022-11-21 09:19:31 -08:00

14 lines
398 B
Diff

diff --git a/src/bsoncxx/stdx/make_unique.hpp b/src/bsoncxx/stdx/make_unique.hpp
index d954eae..c4dea9d 100644
--- a/src/bsoncxx/stdx/make_unique.hpp
+++ b/src/bsoncxx/stdx/make_unique.hpp
@@ -48,7 +48,7 @@ using ::boost::make_unique;
BSONCXX_INLINE_NAMESPACE_END
} // namespace bsoncxx
-#elif __cplusplus >= 201402L
+#elif __cplusplus >= 201402L || defined(_MSVC_LANG)
#include <memory>