Don't declare the extern FingerprintTable specializations under MSVC
authorChristopher Dykes <cdykes@fb.com>
Tue, 1 Nov 2016 23:50:28 +0000 (16:50 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 1 Nov 2016 23:53:30 +0000 (16:53 -0700)
commitb9ac551151f55eba2cf3081e98d38715594674a9
tree8ae7effdb241eb7fa2a3ca2a9602eea52b5cb132
parentf490576e697794b1a803fc280700a4364f5d3b24
Don't declare the extern FingerprintTable specializations under MSVC

Summary:
MSVC doesn't allow uninitialized non-`extern` `const` declarations, but we can't mark them `extern` because they are part of a template specialization. We also can't initialize them, because they'd conflict with the definition specializations in the generated tables.
As the forward-declarations aren't required for it to work under MSVC, as the specializations are found appropriately, just don't declare the specializations under MSVC.

Reviewed By: yfeldblum

Differential Revision: D4098282

fbshipit-source-id: 84b73d63bbe6cf9c54b7fe7a3bfc2488699df7c2
folly/Fingerprint.h