Mark non-captured constexpr variable as static
authorChristopher Dykes <cdykes@fb.com>
Wed, 8 Mar 2017 20:38:27 +0000 (12:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Mar 2017 20:52:25 +0000 (12:52 -0800)
commitb41506c2288e99199cf0dae677d16b103bf52ece
tree2b77dc27415be775d6fc060842ca9b42b2006cd5
parent05d0e3eda9f6ce6950a9a5cc2afe8bff92e19e2e
Mark non-captured constexpr variable as static

Summary:
GCC & Clang allow the use of a non-captured constexpr local within a lambda, MSVC does not.

All 3 compilers allow this when the local has static storage.

Reviewed By: yfeldblum

Differential Revision: D4675147

fbshipit-source-id: 3e07eb77731cbd3ebda6aee4b0b57ac19ac34de5
folly/experimental/test/EliasFanoCodingTest.cpp