mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 03:19:05 +08:00
68c63203e6
* get latest version * libbson 1.17.6 * Updated patches * bson sha * Mongoc upgraded to 1.17.6 * updated sha * Updated mongoc to latest * updated sha * upgraded mongo-cxx * manifest fix * updated sha * PR comments * updated sha * fixed missing dependency. deleted unused patch * sha * PR comments * sha * Use modern cmake helpers for mongo-cxx-driver. * Rebuild version database. Co-authored-by: Billy Robert ONeal III <bion@microsoft.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
17 lines
654 B
Diff
17 lines
654 B
Diff
diff --git a/src/mongocxx/instance.cpp b/src/mongocxx/instance.cpp
|
|
index f12bd84a8..acc570fa9 100644
|
|
--- a/src/mongocxx/instance.cpp
|
|
+++ b/src/mongocxx/instance.cpp
|
|
@@ -75,9 +75,10 @@ typename std::aligned_storage<sizeof(instance), alignof(instance)>::type sentine
|
|
std::atomic<instance*> current_instance{nullptr};
|
|
static_assert(std::is_standard_layout<decltype(current_instance)>::value,
|
|
"Must be standard layout");
|
|
+#if (!defined(_MSVC_STL_VERSION))
|
|
static_assert(std::is_trivially_destructible<decltype(current_instance)>::value,
|
|
"Must be trivially destructible");
|
|
-
|
|
+#endif
|
|
} // namespace
|
|
|
|
class instance::impl {
|