Skip to content

Commit c0e3b97

Browse files
committed
minor: clang may use an older than GCC 5 libstdc++
1 parent 3ca6bcd commit c0e3b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongocxx/instance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typename std::aligned_storage<sizeof(instance), alignof(instance)>::type sentine
6969
std::atomic<instance *> current_instance{nullptr};
7070
static_assert(std::is_standard_layout<decltype(current_instance)>::value,
7171
"Must be standard layout");
72-
#if (!defined(__GNUC__) || defined(__clang__)) || (__GNUC__ >= 5)
72+
#if (!defined(__GNUC__) || (defined(__clang__) && !defined(__GLIBCXX__))) || (__GNUC__ >= 5)
7373
static_assert(std::is_trivially_constructible<decltype(current_instance)>::value,
7474
"Must be trivially constructible");
7575
#endif

0 commit comments

Comments
 (0)