diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-05-23 12:54:08 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-05-23 16:11:39 -0400 |
commit | 56ec2fc78cb0d2d6e3850b2df06eb0d5b4f487f4 (patch) | |
tree | d30e29e829b755f755ce8047b9c08e35c39bd312 /src/mongo/stdx | |
parent | 908df56a8ef1f5f599bf4797dfee7838e326a2ee (diff) | |
download | mongo-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.h | 2 |
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"); |