summaryrefslogtreecommitdiff
path: root/src/mongo/stdx
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-05-23 12:54:08 -0400
committerAndrew Morrow <acm@mongodb.com>2018-05-23 16:11:39 -0400
commit56ec2fc78cb0d2d6e3850b2df06eb0d5b4f487f4 (patch)
treed30e29e829b755f755ce8047b9c08e35c39bd312 /src/mongo/stdx
parent908df56a8ef1f5f599bf4797dfee7838e326a2ee (diff)
downloadmongo-56ec2fc78cb0d2d6e3850b2df06eb0d5b4f487f4.tar.gz
SERVER-35170 Add misc fixes to enable building in -std=c++17 mode
Diffstat (limited to 'src/mongo/stdx')
-rw-r--r--src/mongo/stdx/new.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/stdx/new.h b/src/mongo/stdx/new.h
index 158223d35d2..9afe9820d76 100644
--- a/src/mongo/stdx/new.h
+++ b/src/mongo/stdx/new.h
@@ -36,7 +36,7 @@
namespace mongo {
namespace stdx {
-#if __cplusplus < 201703L
+#if __cplusplus < 201703L || !defined(__cpp_lib_hardware_interference_size)
#if defined(MONGO_CONFIG_MAX_EXTENDED_ALIGNMENT)
static_assert(MONGO_CONFIG_MAX_EXTENDED_ALIGNMENT >= sizeof(uint64_t), "Bad extended alignment");