vcpkg/ports/mongo-cxx-driver/fix-msvc-cxx17.patch

14 lines
398 B
Diff
Raw Normal View History

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>