Avoid std::initializer_list ctor in folly::dynamic::array
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 23 May 2016 06:35:19 +0000 (23:35 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Mon, 23 May 2016 06:38:25 +0000 (23:38 -0700)
commitb939def1c52c5d759a984483b52a54fdc5c59e97
treee9312b89dc4ef5840cc64d515f31abe0ee9a8484
parent0f76e090f18605286352ee92020efcb3556d4d69
Avoid std::initializer_list ctor in folly::dynamic::array

Summary:
[Folly] Avoid `std::initializer_list` ctor in `folly::dynamic::array`.

This will help deprecate the dangerous initializer-list constructor. The init-list construction is dangerous because its semantics vary by compiler and by compiler version.

Reviewed By: ot

Differential Revision: D3333148

fbshipit-source-id: 031e7593b7e28b299d5eeeb5ce7aed9216dd3a5c
folly/dynamic-inl.h
folly/dynamic.h