Don't use a VLA for the double->string buffer.
authorChristopher Dykes <cdykes@fb.com>
Thu, 18 Feb 2016 23:24:48 +0000 (15:24 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 19 Feb 2016 00:20:28 +0000 (16:20 -0800)
commitad925ffabc3a5d452927242efdff0ba70f34626d
treec067240c810475d8de884ff94e56811e988401e3
parentca09289d7cdd304e27e6a966681dd958891521e9
Don't use a VLA for the double->string buffer.

Summary: MSVC is actually smarter about this than GCC, as MSVC doesn't support VLAs, it tries to eval the length at compile time. GCC on the other hand doesn't try to eval it at compile time, resulting in compiles via CMake telling us that this is a VLA.

Reviewed By: yfeldblum

Differential Revision: D2911929

fb-gh-sync-id: ffaa133bcf4129a3e02f7e875966d3ae6a97be6a
shipit-source-id: ffaa133bcf4129a3e02f7e875966d3ae6a97be6a
folly/Format.cpp
folly/Makefile.am
folly/Portability.h
folly/Range.h
folly/json.cpp
folly/portability/Constexpr.h [new file with mode: 0755]