2020-05-30 04:03:06 +08:00
|
|
|
diff --git a/src/mongocxx/instance.cpp b/src/mongocxx/instance.cpp
|
2021-10-27 13:31:19 +08:00
|
|
|
index f12bd84a8..acc570fa9 100644
|
2020-05-30 04:03:06 +08:00
|
|
|
--- a/src/mongocxx/instance.cpp
|
|
|
|
+++ b/src/mongocxx/instance.cpp
|
2021-10-27 13:31:19 +08:00
|
|
|
@@ -75,9 +75,10 @@ typename std::aligned_storage<sizeof(instance), alignof(instance)>::type sentine
|
2020-05-30 04:03:06 +08:00
|
|
|
std::atomic<instance*> current_instance{nullptr};
|
|
|
|
static_assert(std::is_standard_layout<decltype(current_instance)>::value,
|
|
|
|
"Must be standard layout");
|
2021-10-27 13:31:19 +08:00
|
|
|
+#if (!defined(_MSVC_STL_VERSION))
|
|
|
|
static_assert(std::is_trivially_destructible<decltype(current_instance)>::value,
|
|
|
|
"Must be trivially destructible");
|
|
|
|
-
|
|
|
|
+#endif
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
class instance::impl {
|