Use static const keys in AtomicHashArray::Config.
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 5 Aug 2015 18:48:13 +0000 (11:48 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Wed, 5 Aug 2015 19:22:21 +0000 (12:22 -0700)
commitd807e4c12d51b00183cc2fcc13d75fb3ec0e412c
treec2957cdadfa7ea03ffbdeaa54f24678b46af46e9
parentc40f1cf496c8bb2653ae41121946291aaed9679e
Use static const keys in AtomicHashArray::Config.

Summary: [Folly] Use static const keys in AtomicHashArray::Config.

From https://github.com/facebook/folly/pull/264/, MSVC may have a hard time with certain expressions. D2284130 factored them out as `static constexpr` members, but Clang had a hard time with that in HPHP. This adds a test case that triggers the same failure to the Folly build. Not quite sure how this impacts MSVC though.

Reviewed By: @Gownta

Differential Revision: D2304346
folly/AtomicHashArray-inl.h
folly/AtomicHashArray.h
folly/AtomicLinkedList.h
folly/test/AtomicHashArrayTest.cpp