Allow const mapped types in folly::AtomicHash(Array|Map)
authorBrett Simmers <bsimmers@fb.com>
Thu, 9 Jun 2016 00:19:20 +0000 (17:19 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Thu, 9 Jun 2016 00:23:23 +0000 (17:23 -0700)
commitd4c0d267624c92d2989a7155731c6fa9a9e71100
tree90adbd1701a2c04c035f029df0a6a8a8759fbeaa
parent8cb615a27594078056b2e4ec2350660e594f5a89
Allow const mapped types in folly::AtomicHash(Array|Map)

Summary:
Without this const_cast, it's impossible to insert anything into an
AHA with a const mapped_type, making it effectively useless.

Reviewed By: yfeldblum

Differential Revision: D3405687

fbshipit-source-id: 3ecba19e0e92661c2c537c747b4927176104939f
folly/AtomicHashArray-inl.h
folly/test/AtomicHashArrayTest.cpp