Summary: [Folly] Avoid incorrect constexpr in folly/AtomicHashArray.h.
It's actually not transitively constexpr, because it uses const values that are not themselves constexpr. Depending on the compiler, it could theoretically fail to build.
Reviewed By: @Gownta
Differential Revision:
D2322143
static const KeyT kErasedKey;
public:
- constexpr Config() : emptyKey(kEmptyKey),
- lockedKey(kLockedKey),
- erasedKey(kErasedKey),
- maxLoadFactor(0.8),
- growthFactor(-1),
- entryCountThreadCacheSize(1000),
- capacity(0) {}
+ Config() : emptyKey(kEmptyKey),
+ lockedKey(kLockedKey),
+ erasedKey(kErasedKey),
+ maxLoadFactor(0.8),
+ growthFactor(-1),
+ entryCountThreadCacheSize(1000),
+ capacity(0) {}
};
static const Config defaultConfig;