Avoid the ODR issue with ThreadLocalDetail's kInvalid
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 16 Oct 2015 19:46:00 +0000 (12:46 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Fri, 16 Oct 2015 20:20:22 +0000 (13:20 -0700)
commitbab85e2506c4272bbb71eddb7d9b49571b6fa4b0
tree93524cbca21bfce47231e2ffca2b314a0482f86c
parentef40ac8213eeb977db9e9be53988bb11866c830b
Avoid the ODR issue with ThreadLocalDetail's kInvalid

Summary: [Folly] Avoid the ODR issue with `ThreadLocalDetail`'s `kInvalid`.

The problem is that it is a `static constexpr` class member, so pull it out of the class.

Reviewed By: bmaurer

Differential Revision: D2549272

fb-gh-sync-id: 28a73e73b9cf9f21bee2bba2125513c02ef56ce2
folly/detail/ThreadLocalDetail.h
folly/test/ThreadLocalTest.cpp